What is the difference between ExecuteUpdate and
ExecuteQuery?
Answer Posted / 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 |
Post New Answer View All Answers
What is a web application and what is it’s directory structure?
What is the functionality of actionservlet and requestprocessor?
What are the differences between servlet context vs servlet config?
How can you start a jta transaction from a servlet deployed on jboss?
What is called Scriptlet?
Servlet is pure java object or not?
What is dispatcher servlet?
How httpservlet is different from the genericservlet?
What is servlet initializer?
What is the difference in between the httpservlet and generic servlet?
Differentiate between the print writer and servlet output stream?
Given the request path below, which are context path, servlet path and path info?
Explain the role of dispatcherservlet and contextloaderlistener.
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?
What are different methods of session management in servlets?