What is the difference between ExecuteUpdate and
ExecuteQuery?

Answer Posted / vishnuvardhan

ExecuteUpdate method will return integer value.
ExecuteQuery method will return ResultSet value.

Is This Answer Correct ?    45 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255

2920


What is java servlet?

612


How do we share data using 'getservletcontext ()?

543


What’s the difference between sendredirect and forward methods

568


What is the use of servlet context?

537






What is the default http method in the servlet?

766


Explain in brief the directory structure of a web application?

572


Can you call a jsp from the servlet?

548


Define the servlet mapping.

548


What do you mean by session tracking and also explain its techniques?

504


Why is httpservlet declared abstract?

582


What is the effective way to make sure all the servlets are accessible only when user has a valid session?

572


What are the mechanisms used by a servlet container for maintaining session information?

570


How do you invoke a servelt?

630


What are all the advantages of servlet over cgi?

608