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 |
Can we override the static method?
State the merge-sort principle and its time complexity.
0 Answers Akamai Technologies,
How do you trim a space in java?
What is the difference between access specifiers and access modifiers in java?
How to use Media tracker Class.
What are predicates in java 8?
What is an exception? difference between Checked and Unchecked exception in Java
0 Answers SkillGun Technologies,
Can an abstract class be final?
Can a class be private in java?
Can you declare the main method as final?
What is string and its types?
how to handle exceptions in ejb?