What is the difference between ExecuteUpdate and
ExecuteQuery?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is the get () method different from the post() method?

539


What do you mean by filter in servlet?

538


What are the different methods involved in the process of session management in servlets?

671


What is the difference between the http servlet and generic servlet?

604


Tell us something about servletconfig interface.

584






What is called a session?

625


What is pure servlet?

698


How to get the path of servlet in the server?

541


What is servlet configuration?

532


What is the major difference between servlet and applet?

544


What is the need of session tracking in web application?

585


What are the differences between the servletconfig interface and the servletcontext interface?

586


What's the difference between authentication and authorization?

554


What is difference between jsp and servlet?

648


What is webservlet?

539