Write a code in which a method receives list and string and returns true if the string exists in list and false if it do not exist. What is scriplet and what is expression? What is the internal logic behind hashMap execution? Does hashmap size affects the performance of hashmap? This question is asked in almost all interviews. What is atomicity? Is count++ operation thread safe? Why? What is the difference between Callable and Runnable? What is the difference between IOC and dependency injection? Is dependency injection is the concept only used in Spring? what is the difference between final, finally and finalize? If we declare arrayList as final, can we remove elements from arrayList? How did you handled spring security in your project? What is a WSDL and different parts of WSDL? What are the advantages of REST over SOAP? Why should we implement Cloneable interface if we have to clone an object, though clone method comes from Object class? How is a variable shared between multiple threads? What is a thread deadlock? How do we avoid it? What is Hibernate Unidirectional and Bidirectional? What is the method to be overridden if we are implementing MessageDrivenBean? What are the advantages of using Generics?