Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Can we store variables in local blocks?

0 Answers   Global Logic,


Can static methods be overridden?

5 Answers   Bravura Solutions,


What is a pointer and does java support pointers?

0 Answers  


Which class should you use to obtain design information about an object in java programming?

0 Answers  


What is difference between pointer and reference?

0 Answers  


What is the difference between throw and throws?

11 Answers   IBM,


Difference between error and exception

3 Answers   Nous, TCS,


What about method local inner classes or local inner classes in java?

0 Answers  


Why is the main method static in Java?

1 Answers  


What is a platform?

0 Answers  


What is the effect of keeping a constructor private?

0 Answers  


How many types of equations are there?

0 Answers  


Categories