Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Hibernate%20Interview%20Questions%20and%20Answers

Question: What is the difference between the session.get() method and the session.load() method?
Answer: Both the session.get(..) and session.load() methods create a persistent object by loading the required object from the database. But if there was not such object in the database then the method session.load(..) throws an exception whereas session.get(&) returns null.
Is it helpful? Yes No

Most helpful rated by users:

©2024 WithoutBook