Which of the following statement is false regarding the use of setAutoCommit() in JDBC

A) When a connection is created, it is in auto-commit mode.
B) If the value is true each individual SQL statement is treated as a transaction and will be automatically committed right after it is executed.
C) once auto-commit mode is disabled, no SQL statements will be committed until you call the method commit explicitly
D) By default the JDBC call is in auto-commit mode.
Explanation: by default the JDBC call is in non auto-commit mode

Showing Answers 1 - 7 of 7 Answers

padmasini

  • Jan 7th, 2006
 

B) If the value is true each individual SQL statement is treated as a transaction and will be automatically committed right after it is executed.

  Was this answer useful?  Yes

Sunanda

  • Jan 19th, 2006
 

D) By default the JDBC call is in auto-commit mode.

D) is the correct answer and not B) because B) is true statement.

  Was this answer useful?  Yes

Abhishek

  • Sep 5th, 2006
 

Hi,

  I think (D) is the right answer.

  Was this answer useful?  Yes

Harish

  • Apr 10th, 2018
 

Answer is : D

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions