what is the default value of lazy in hibernate ?
-
lazy=false;
-
lazy=true;
-
lazy=yes;
-
lazy=no;
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.