Multiple choice technology packaged enterprise solutions

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

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.