Skip to content
Sharp

SQL for Java Devs · interview question

Why is it useful to disabling auto-commit mode in JDBC?

Multiple choiceEasychapter-8-curatedpremiumsql-for-java-devstransactions
Choose one answer
Answer and explanation

Correct answer

B. To allow multiple SQL statements to be grouped within a single transaction.

Why

Disabling auto-commit mode allows a series of SQL operations to be executed within a single transaction. This ensures that all operations are successfully completed before committing, or none are applied if a rollback is necessary.

Test yourself on SQL for Java Devs

A free test with instant, explained results. No account needed.

Start free test
All SQL for Java Devs questions →