Thursday, 6 September 2012

How can you start a database transaction in the database? | Java JDBC

A. By asking a Transaction object to your Connection, and calling the method begin() on it
B. By asking a Transaction object to your Connection, and setting the autoCommit property of the Transaction to false
C. By calling the method beginTransaction() on the Connection object
D. By setting the autoCommit property of the Connection to false, and execute a statement in the database

Ans:   D

No comments: