Where does LazyInitializationException come from, and how do Hibernate's first-level and second-level caches affect working with entities?
~4 min by voice
How to approach it
This checks whether you understand how Hibernate loads lazy associations and how the persistence context lives, whether you fix LazyInitializationException properly rather than with hacks, and whether you use the first-level and second-level caches deliberately, knowing their risks.
The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.