Posts

Showing posts from January, 2021
 How to remove duplicate elements from a list using java8 and sort  example:- "abc","abc","xyz","pqr","pqr" output:- "abc","pqr","xyz". what are the status of the object in case of java hibernate :- persistent , transient  What are the memory blocks in case of stack What is the optional class  Why do we require only one abstract method in case of functional interface ? How do we use functional interface with lambda expression What is actuator ? what is indexing in database  How do you write junit for the method which does not return any thing How many types of executor service ? what are their implementation  what is cyclic barrier and count down latch ? What is cascading in hibernate with an example  what is transaction management in hibernate  can immutable class be singleton and vice versa ? What is solid principal in java ? what is atomicity? what are the scopes of spring bean? What is inversion of cont