Hibernate Interview Questions

1. What are the Collection types in Hibernate?
  1. Bag
  2. Set
  3. List
  4. Array
  5. Map
2. What is the differnece between load() and get() methods? When we use both of them?


  1. Use load() method when you are sure the object exists.
  2. It throw an exception if the unique id is not found in the database.


  1. Use get() method when you are not sure that the object exists.
  2. It returns null if the unique id is not found in the database.
  3. get() will hit the database immediately.

For more questions, Please download this.

Enter your email address:

Delivered by FeedBurner

Sandeep Joshi
Mathematics, Technology and Programming are my passion. I am a part of Java Ecosystem and through this blog, I contribute to it. I am here to blog about my interests, views and experiences.
I am on Google+ and Facebook.
I feel proud to be listed as a "National Memory Record Holder" in the Limca Book of Records, 2009 and have attempted for an International Memory record in the Guiness Book of Records. I can remember the value of PI upto 10,000 digits after the decimal (3.1415.....). You can contact me on javagenious.com(At)gmal.com ; I would like to hear from you :)