Lazy loading is a fetching strategy in Hibernate where an entity or its associated collections are not retrieved from the database until the code actually accesses them, rather than being loaded eagerly along with the parent object.
Loading a Department entity with a lazy @OneToMany list of Employees doesn't hit the database for employees at all until code calls department.getEmployees(), at which point Hibernate issues the query to fetch them.
@Entity
public class Department {
@OneToMany(mappedBy = "department", fetch = FetchType.LAZY)
private List<Employee> employees;
}A concise interview answer is
Lazy loading defers fetching an association until it's actually accessed in code, using a proxy that triggers the real query on first use. It's the default for collections in Hibernate and helps avoid pulling in data you don't need, but accessing it after the session is closed throws a LazyInitializationException.
Last updated: 11 November 2026
Previous question: How does Hibernate protect against SQL injection?
Next question: How do you handle concurrency in Hibernate?