Skip to content
Sharp

SQL for Java Devs · interview question

Why might a transaction fail in a JDBC application?

Multiple choiceHardchapter-8-curatedpremiumsql-for-java-devsjdbc
Choose one answer
Answer and explanation

Correct answer

B. Due to a network failure during the transaction

Why

A transaction might fail due to external issues like network failures, which can interrupt communication between the application and the database, causing the transaction to be incomplete.

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 →