what is the default value of lazy in hibernate ?
-
lazy=false;
-
lazy=true;
-
lazy=yes;
-
lazy=no;
B
Correct answer
Explanation
The default value of lazy loading in Hibernate is 'true'. This means associations are loaded on-demand when first accessed, not eagerly when the parent object is loaded. This lazy loading improves performance by avoiding unnecessary database queries for data that might never be used.