Pregunta de entrevista de Genpact

1. Implement equals and hashcode methods  for  demo class. Class Demo {    private String key;    private int value; } 2. Interface Demo{ m1(); m2(); } Class A implements Demo{ m1(); m2(); m3(): } main(){    Demo object = new A();     object.m3(); } 3. What happens when Immutable class contains mutable reference as instance variable. How to avoid the issues with it. 4. Hashmap working , collision. 5.spring bean definitions 6. Caching in hibernate. 2nd round Types of class loaders. Rest and soap difference Jre and JVM How will be the out of memory will be tackled after reaching max size available Difference between logical and physical database Which design patterns are been used in your project What is build design pattern For implementing caching in application, which kind of collection do you use Difference between list and set Implementation of custom set in java What all required changes are done on class if it is being used as key in collection What need to be considered inside implementation of equals and hascode Contact equals and hashcode. Explain executor framework. Difference between interface and abstract class. Why we explicitly give public static final for constants if JVM internally treats this as same in interface. What does final keyword actually does to an object - internal working How do you display duplicates with their count using collection.