Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


What is the difference between ExecuteUpdate and
ExecuteQuery?

Answers were Sorted based on User's Feedback



What is the difference between ExecuteUpdate and ExecuteQuery?..

Answer / anji

executeUpdate() - is used to update or modify the table, it
will returns howmany rows added/updated in the table.

executeQuery() - is used to retrieve the data from the
table. only for "select" query, this will return a
Resultset metadata

Is This Answer Correct ?    42 Yes 2 No

What is the difference between ExecuteUpdate and ExecuteQuery?..

Answer / vishnuvardhan

ExecuteUpdate method will return integer value.
ExecuteQuery method will return ResultSet value.

Is This Answer Correct ?    45 Yes 7 No

What is the difference between ExecuteUpdate and ExecuteQuery?..

Answer / balu

executeUpdate() --is used for executing non-select
statements

executeQuery() - is used for executing select statements

The above two are valid in SQLServer
Note: but i think in case of Oracle executequery()may also
accept non-select statements

Is This Answer Correct ?    19 Yes 2 No

What is the difference between ExecuteUpdate and ExecuteQuery?..

Answer / fiza

when we seach any record from database we call the execute
query and when we write in database we call the update
method

Is This Answer Correct ?    15 Yes 3 No

Post New Answer



More Servlets Interview Questions

Can servlet have a constructor ?

0 Answers  


What's the architecture of a servlet package?

0 Answers  


What are the steps involved in placing a servlet within a package?

0 Answers  


What are the phases of a servlet life cycle?

0 Answers  


What do you mean by annotations in servlet?

0 Answers  






What do you mean by scope object and what are its types?

0 Answers  


What are the different session tracking techniques?

0 Answers  


What is servlet context ?

4 Answers  


what do you understand by url rewriting?

0 Answers  


What is a servlet context object?

0 Answers  


In servlets, Why do we need both GET and POST method implementations?

3 Answers   IBM,


How httpservlet is different from the genericservlet?

0 Answers  






Categories