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 |
What is difference between string and new string?
Write a program for recursive Traverse?
What is a return in java?
Why singleton pattern is better than creating singleton class with static instance?
What is the purpose of methodology?
What is meant by serialisation and deserialisation?
Is namespace same as package in java?
can we have virtual functions in java?
what is bytecode ?explain in detail and watz the difference between bytecode and machine code?
What releases of Java technology are currently available? What do they contain?
How to invoke external process in java.
What is the purpose of static methods and variables?