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 store variables in local blocks?
Can static methods be overridden?
What is a pointer and does java support pointers?
Which class should you use to obtain design information about an object in java programming?
What is difference between pointer and reference?
What is the difference between throw and throws?
Difference between error and exception
What about method local inner classes or local inner classes in java?
Why is the main method static in Java?
What is a platform?
What is the effect of keeping a constructor private?
How many types of equations are there?