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

Why java is called not pure object oriented language?

0 Answers  


can we write two same methods in outer class and innerclass.

1 Answers   3i Infotech,


What is difference between final and immutable?

0 Answers  


What are Transient and Volatile Modifiers?

3 Answers   SAP Labs, TUP Manila,


Difference between flush() and commit() in hibernate?

2 Answers   Bally Technologies,


What is multiple inheritance & can we implement it in java?

6 Answers   Satyam,


Can we overload the constructors?

0 Answers  


How do you generate random numbers in java?

0 Answers  


Is array primitive data type in java?

0 Answers  


Why we should declare the variables as static and final in interfaces?

1 Answers  


Can we create more than one object singleton class?

0 Answers  


what is difference between throw and throws in exception?

48 Answers   Spenco,


Categories