what is the default value in hibernate ?
-
lazy=false;
-
lazy=true;
-
lazy=yes;
-
lazy=no;
B
Correct answer
Explanation
In Hibernate 3 and later, lazy loading is enabled by default (lazy="true") for collections and associations to optimize application performance and prevent loading unnecessary data from the database. The alternatives like lazy=false are not default settings, and options using 'yes' or 'no' are syntactically invalid.