Top 15 Java Interview Questions

  1. What is the flaw with the Stack class?
  2. Explain the Java Class loader mechanism. How would you prevent someone from overriding the java.lang.Object class?
  3. Can interfaces contain inner classes?
  4. How does garbage collection work? 
  5. Explain how you would get a Thread Deadlock with a code example?
  6. What happens when you try to serialize a class whose base class does not implement serializable?
  7. How can you prevent flow of control to a finally { } clause?
  8. I write two classes : I write a static method in the base class and override that static method in the child class. Will this code compile?
  9. Write a program that prints a.b.c.a.b.c...and so on 100 times using threads?
  10. What happens if you try to start a thread thats already been started?
  11. What are the main benefits of using Spring on a project ?
  12. What is AOP ?
  13. How hibernate implements lazy loading ?
  14. What is the second level cache in Hibernate ?
  15. What is the difference between load and get method in hibernate?



Enter your email address to get our daily JOBS & INTERVIEW FAQ's Straight to your Inbox.

Make sure to activate your subscription by clicking on the activation link sent to your email


Enter your email address to get our daily JOBS & INTERVIEW FAQ's Straight to your Inbox.

Make sure to activate your subscription by clicking on the activation link sent to your email