1.

What does setAutoCommit(false) do?(a) commits transaction after each query(b) explicitly commits transaction(c) does not commit transaction automatically after each query(d) never commits transactionThe question was posed to me in an online quiz.The query is from JDBC topic in portion Java Beans & JDBC of Java

Answer»

Correct choice is (c) does not commit TRANSACTION automatically after each query

To EXPLAIN I would say: setAutoCommit(FALSE) does not commit transaction automatically after each query. That saves a LOT of time of the execution and hence improves performance.



Discussion

No Comment Found

Related InterviewSolutions