to update a batch in a table in jdbc which method of
statement object is used.

Answers were Sorted based on User's Feedback



to update a batch in a table in jdbc which method of statement object is used...

Answer / prasad

we will call updateBatch on statement

Is This Answer Correct ?    22 Yes 2 No

to update a batch in a table in jdbc which method of statement object is used...

Answer / surima

First add the sql querys to statement object via
stmt.addBatch(strupdQry)
then write stmt.executeBatch()

Is This Answer Correct ?    21 Yes 1 No

to update a batch in a table in jdbc which method of statement object is used...

Answer / name

!!! we will call updateBatch on statement!!!

Is This Answer Correct ?    6 Yes 4 No

to update a batch in a table in jdbc which method of statement object is used...

Answer / kakumudi srihari mca

By using BatchUpdate().

Is This Answer Correct ?    0 Yes 0 No

to update a batch in a table in jdbc which method of statement object is used...

Answer / subhasish

surima is correct

Is This Answer Correct ?    0 Yes 4 No

to update a batch in a table in jdbc which method of statement object is used...

Answer / chandran

to update a batch in a table Prepared Statement is used and
the method executeUpdate(), is used

Is This Answer Correct ?    4 Yes 15 No

Post New Answer

More J2EE Interview Questions

What is javaserver pages standard tag library (jstl)?

0 Answers  


What is j2ee architecture?

0 Answers  


What are the four components of j2ee application?

0 Answers  


What is context root?

0 Answers  


What every java developer should know?

0 Answers  






Is a relationship java?

0 Answers  


What spring is in related to j2ee?

0 Answers  


What is a jbutton in java?

0 Answers  


What is container-managed persistence?

0 Answers  


Which of the following are subclasses of java awt component?

0 Answers  


i developed a Stateless Session bean program.And created a client by a common java class as class m {p s v m(String s[]){....}} And i called the bean deployed in weblogic.from cmd prompt And that run. mind it i have to set setenv,seting classpath for that bean jar file before compile and run it. ok when i do a servlet programme deployed in tomcat and call that bean then it give classdefnotfoundException and NoInitialContext like this.So how i sucessfully do this? Ok when i call that bean from java class from the console like i previously told, if i don't set setenv i found the same error on the cmd prompt. pls help to get out of it

2 Answers  


i have to create an application with session.during that session a timer will be started & show the time in second upto the session expired.So that i can know how many time i in that session. Hint:-i m hinted that it will coded with javascript

4 Answers   L&T, Wipro,


Categories