PrepAway - Latest Free Exam Questions & Answers

Under JDBC, a new Connection object is in manual-commit mode by default.

Under JDBC, a new Connection object is in manual-commit mode by default.

PrepAway - Latest Free Exam Questions & Answers

A.
True

B.
False

C.
True only if you are using the latest version of JDBC manager

D.
True only if you are accessing JDBC via native calls

E.
True only if you are using JDBC 1.0

F.
False for any data source running on Microsoft platforms

Explanation:
Quoted directly from Sun’s Java document site at
http//developer.java.sun.com/ Generally a new Connection object is in
auto-commit mode by default, meaning that when a statement is completed, the
method commit will be called on that statement automatically. In this case, since
each statement is committed individually, a transaction consists of only one
statement. If auto-commit mode has been disabled, a transaction will not terminate
until the method commit or rollback is called explicitly, so it will include all the
statements that have been executed since the last invocation of either commit or
rollback. In this second case, all the statements in the transaction are committed or

rolled back as a group.


Leave a Reply