What is the difference between ExecuteUpdate and
ExecuteQuery?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we achieve transport layer security for our web application?

664


Can a jsp be called using a servlet?

663


Explain the difference between servlet and cgi?

696


Can you use javascript in servlets?

698


What does the term localization refer to?

670






What is servlet? Explain

671


What exactly is a servlet?

619


What do you mean by singlethreadmodel interface?

692


Which httpsession object is used to view and manipulate information about a session?

833


What is the servletconfig object?

622


What are some advantages of storing session state in cookies?

689


What exactly are the functions of servlet?

696


If my browser does not support cookie, and my server sends a cookie instance what will happen?

734


Hello, My project requirement is like I need to create a web page using MVC pattern. I hava a bean class, jsp page, servlet, service and dao. My jsp has two fields. One is dropdown list. The option values has to get populated from the database table. The other one is a text box and its value has to come from database table. As of now I have defined the fields in bean class, got the values from database using arraylists in dao class and I called this from service class. Can anyone please tell me the workflow of how the servlet will get this arraylist and populate the arraylist values as dropdown options in jsp page? Also I would like to know the role of bean class in MVC pattern? Thanks in advance!

1912


How do we share data using 'getservletcontext ()?

636