What is the difference between ExecuteUpdate and
Answers were Sorted based on User's Feedback
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
|Is This Answer Correct ?||42 Yes||2 No|
Answer / vishnuvardhan
ExecuteUpdate method will return integer value.
ExecuteQuery method will return ResultSet value.
|Is This Answer Correct ?||45 Yes||7 No|
Answer / balu
executeUpdate() --is used for executing non-select
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|
Answer / fiza
when we seach any record from database we call the execute
query and when we write in database we call the update
|Is This Answer Correct ?||15 Yes||3 No|
Can servlet have a constructor ?
What's the architecture of a servlet package?
What are the steps involved in placing a servlet within a package?
What are the phases of a servlet life cycle?
What do you mean by annotations in servlet?
What do you mean by scope object and what are its types?
What are the different session tracking techniques?
What is servlet context ?
what do you understand by url rewriting?
What is a servlet context object?
In servlets, Why do we need both GET and POST method implementations?
How httpservlet is different from the genericservlet?