Multiple choice technology web technology

what is the result of this program?

  1. throws exception

  2. automatically generates the ID

  3. compilation error

  4. none of the above

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

The Hibernate mapping configuration with automatically generates incrementing numeric IDs for new entities. When you save a new object, Hibernate reads the next ID value from the database and assigns it. This is a built-in ID generation strategy that requires no manual intervention.