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 phases of a servlet life cycle?
Where do you define dispatcherservlet?
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
What are the advantages of Servlet over CGI?
How forward () method is different from send redirect () method?
Which method the Servlet container call to create the instance of the servlet?
16 Answers emc2, JK Technosoft,
1.HttpSession 2.Hidden fields 3.URL Rewriting these primitive type of Session maintainance. What is the other type of process that could help to maintain the Session? pls Explain the process if u know?
what are binding listners?
How are filters?
How to generate the server side programming and the advantages of it over the other languages?
Is tomcat a servlet container?
what is meant by Transaction Isolation Levels?