1. Why is Session not thread-safe in Hibernate?
- It manages multiple connections
- It maintains first-level cache and persistence context
- It uses lazy loading
- It executes HQL queries
Reveal sample answer and explanation
Answer: It maintains first-level cache and persistence context
Session maintains state and cache, making it unsafe for concurrent access.