Multiple choice technology web technology

what is the default value of lazy in hibernate ?

  1. lazy=false;

  2. lazy=true;

  3. lazy=yes;

  4. lazy=no;

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Hibernate uses lazy loading by default with lazy=true. This means associations and collections are not loaded from the database until they are actually accessed in code, which improves performance by avoiding unnecessary queries.