Multiple choice technology architecture

What is Automatic Dirty Checking in Hibernate?

  1. Process of monitoring and updating only objects that have changed.

  2. Process of calling the update () and save () methods explicitly.

  3. Process of releasing memory to heap which is no longer accessible from any live thread.

  4. None of the above.

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

Automatic dirty checking is a Hibernate feature that automatically detects changes made to persistent objects within a transaction and synchronizes them with the database during flush/commit. You do not need to call update() or save() explicitly; Hibernate tracks object state automatically.