Which of the following is used to rollback a JDBC transaction?
(a) rollback()
(b) rollforward()
(c) deleteTransaction()
(d) RemoveTransaction()
(a) rollback()
(b) rollforward()
(c) deleteTransaction()
(d) RemoveTransaction()
Correct answer is (a) rollback()
To explain: rollback() method is used to rollback the transaction. It will rollback all the changes made by the transaction.