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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
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 are batch updates. in jdbc
 Question Submitted By :: Gopalraop
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What are batch updates. in jdbc
Answer
# 1
Batch updates is a facility given by the JDBC to the 
application developers to submit a set of SQL update 
statements as batch to the database.

st.addBatch("Update statement1");
st.addBatch("Update statement2");
st.addBatch("Update statement3");

int updated[]=st.executeBatch();// This methods throws 
BatchUpdateException and SQLException
 
Is This Answer Correct ?    1 Yes 0 No
Gajendra
 
  Re: What are batch updates. in jdbc
Answer
# 2
Batch Update provide the functionality of executing a group 
of sql statement at single timing.

Steps:

1.set autocommit as false for connection .
       connectionObject.setAutoCommit(false);
2.create sql statement and add to statement object.
       statementObj.addBatch("sql1");
       statementObj.addBatch("sql2");
       statementObj.addBatch("sql3");
3.execute the batch of statement using executeBatch().
      statementObj.executebatch();
4. commit the connection.
            connectionObj.commit();
 
Is This Answer Correct ?    2 Yes 0 No
Vijayakumar Chinnasamy
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
write a class to input 2 points by the user & check the line maked by the points is horizontal,vertical or rectangle?  1
WHAT IS THE MEANING OF ALL TYPE OF BUZZWORDS?  4
What enableEvents() method do?  1
What is meant by Encapsulation? Can you write a class to explain encapsulation? Ness-Technologies8
Is there is any error if you have multiple main methods in the same class? Wipro9
Who developed JScript language?  3
What is difference between hash mapping and hash table? NDS3
explain about jre and jvm  2
What is the root class for all Java classes?  4
class A{ m2(){ } } class B extends A{ m2(){ } } class c extends B{ m2(){ } } class my_class extends c{ m2(){ } pulic static void main(){ ...My_class a = new my_class(); super.super.super.m2(); is this is leagal if not find what is the legal procedure in order to call A's version of m2(); } Logica-CMG8
What is the need of "creating and throwing an UserdefinedException" when the "Exception" class is already available?  4
We have two methods to create methods the threads. 1. Implementing runnable interface 2. Extending to thread class and overriding run method. Among these two which one is better and why? Please explain me in detail.  2
Is multiple inheritance allowed in Java? Why ?  5
Can you call a private data from an inner class?  3
what is main difference b/w abstract class and interface  3
Explain the difference between scrollbar and scrollpane?  1
methods in Applet?  1
what are depricated methods ? Satyam4
When try and catch block is used ?  6
Can try statements be nested? Wipro2
 
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