What is the role of Savepoint in JDBC transactions?

  • It allows you to create a named point within a transaction where you can roll back to later
  • It is a way to commit a transaction and make the changes permanent
  • It is used to save the current state of a database before making any changes
  • It is used to terminate a transaction prematurely
Savepoints in JDBC transactions allow you to create a named point within a transaction. This named point can be used to roll back the transaction to that specific point if needed, providing finer-grained control over transaction rollback. Options 2, 3, and 4 do not accurately describe the role of Savepoint in JDBC transactions.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *