What is the purpose of setAutoCommit() ?



What is the purpose of setAutoCommit() ?..

Answer / shahnawaz sheikh

If AutoCommit is off, then any update or insert operation
perforned on database will not be reflected just after the
query is executed.Though the operation has been
successfully completed.
We will have to commit the transaction manually, to view
the incurred changes.
This also keeps user on the safer side, if some
undesirable row has been inserted,updated or deleted in the
database then it can be rollback.

While if the AutoCommit is on any update,insert or delete
are at once reflected onto the database.

Is This Answer Correct ?    13 Yes 1 No

Post New Answer

More Core Java Interview Questions

How to excute - Interface - Inner class- method can any one tell how to execute/ call this main method public interface abc { static int i=0; void dd(); class a1 { a1() { int j; System.out.println("inside"); }; public static void main(String a1[]) { System.out.println("in interfia"); } } }

1 Answers  


what do you meant by Runtime Polymorphism?

13 Answers   BVIMR, IBM, Persistent,


what is run time polymorphism

4 Answers  


Explain hashset and its features?

0 Answers  


When we should use serialization?

0 Answers  






What releases of Java technology are currently available? What do they contain?

1 Answers  


Which is illegal identifier in java?

0 Answers  


Define Compiling?

3 Answers  


What is java used for on a computer?

0 Answers  


What is procedure writing?

0 Answers  


what is difference between prepare stetement and callable starement with example?

1 Answers   CMC,


can any body body expalin best definitions & best real time exaples for opps concepts.

0 Answers   Accel,


Categories