ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
What is the purpose of setAutoCommit() ?
 Question Submitted By :: Gopalraop
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the purpose of setAutoCommit() ?
Answer
# 1
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 ?    1 Yes 1 No
Shahnawaz Sheikh
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
What is the difference between overloading and overriding a function? Infosys4
What is the use of ?this??  3
What are the operands of instanceof operator?  1
Name the types of 'priority'?  2
class A{ some variables; public void a()throws Excepion1,Exception2{....} } class B extends A{ variables... public void a()throws E2,E3{.....} } Qns: here override of methods occurs or not,ore else wil give any compilation error or run properly..plz tell me briefly whts happening with the above codes.... Quinnox3
What is the purpose of finalization?  3
why java not supproting multiple inheritance?  3
explain the clone method and clonable interface  1
can abstract class have constructor how can you achive this ? Fidelity3
Where the CardLayout is used?  1
What is the difference between add() and addElement() method in Vector Class ? TCS2
Explain the term serialization? Wipro4
While opening the file, what type of exceptions can be caught?  3
What is static variable and static method? TCS4
What is the purpose of the File class?  2
which one the better thread emplemented thread or extended ? Fidelity3
What is interface and its use? HCL5
What are Font and FontMetrics classes?  1
How to access a method that it declared as protected?  3
What is meant by packages?  2
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com