Hi Friend , i have attended java interview at many MNC IT company in Noida ,Delhi, Gurgaon, on basis below listed java interview question which asked many times.
1) About current project that I am working?
2) Current Role & responsibilities in current project
3) Equals&Hascode?why need to implement these methods? How to implement?
4) How will you test for Equals method using Junit?
5) What is Reflex package in java?
5) What are the Java contracts defined to implement Equals&hashcode
6) What is Synchronization? How will you implement synchronization?
7) what is TreeSet?
8) Difference between ConcurrentHashMap and Synchronized Map? what is the best way to implement?
9) What is the easiest way to implement Sorted Set
10) What are the methods in Object class?
11) Difference between String,StringBuffer, StringBuilder
12) If the same path
was given to Global Forward & Action Forward in struts config xml
then which one will take the priority.
13) Struts Can have Multiple Struts_Config.xml
14) Where to declare and how declare multiple Struts config xmls
15) How to transfer the bean values between multiple jsps going throw action classes.
16) What is IOC?
17) What is Dependency Injection?
18) What are kinds of Dependency injection in Spring.
19) How to define Criteria?
20) What is SessionFactory?
21) How to get session Ojbect?
22) What is ThreadLocal?
24) what is XETransaction?
25) Difference between Pessimistic Concurrency Control and Optimistic Concurrency Control?
26) Implementation of Optimistic Concurrency Control?
27) what is difference between Local Transaction and Distributed Transaction.