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 Yield() method when we r using this ? tell exactly
What is final class?
Is empty string in java?
What is ascii format?
What is the memory leak in java?
Can an unreachable object become reachable again?
How does thread synchronization occurs inside a monitor?
What is java autoboxing?
What is difference between jdk,jre and jvm?
10. What is the output of the following Java program? class Main { public static void main(String args[]){ final int i; i = 10; System.out.println(i); } } 10. What is the output of the following Java program? class Main { public static void main(String args[]){ final int i; i = 10; System.out.println(i); } }
What are the restriction imposed on a static method or a static block of code?
How to count occurrences of each duplicate element in a list {a,b,d,c,a,b} ? Thanks in Advance