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

Can servlet have a constructor ?

796


What is difference between GenericServlet and HttpServlet?

749


What are life cycle methods of a servlet?

777


What is http servlet? Explain with the help of an example.

787


how to link html file to sevlet file.one name is textbox,c&c++ is cheakbox,bc&mca is radio button and one submit buttonis ok why in this programme use in servelt file

2338


What do you mean by interservlet communication?

785


What do you mean by deployment descriptor?

752


What is the disadvantage of cookies?

766


What is the difference between portlet and servlet?

700


Which java framework is most popular?

776


What is session tracking?

891


How is an application exception handling is done using a servlet?

747


What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?

821


What are the types of Session Tracking ?

839


What is Servlets and explain the advantages of Servlet life cycle?

807