What is the difference between ExecuteUpdate and
ExecuteQuery?
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
Resultset metadata
| 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
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 |
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 |
What are the life cycle methods of the servlet?
What are the supporting protocol by HttpServlet ?
How do you invoke a servelt?
What is a deployment descriptor?
What's the advantages using servlets than using cgi?
How can the session in servlet can be destroyed?
What’s the use of the servlet wrapper classes??
if we know the any consultancies, it will place in company work through consultancy(contract base). please help me I'm 2008 pass out java candidate...
Explain the custom jsp tags and the beans.
What is the directory structure of a war file?
Write a servlet to upload file on server.
What is the life-cycle of servlets?