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
What's the use of servletcontext?
How are filters?
Explain the difference between generic servlet and http servlet?
What are the functions of Servlet container?
What are the functions of the servlet container?
I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>
Why the concept of single thread model interface is used?
Why the container loads server at the application startup and how?
What is a cookie What is the difference between session and cookie
Difference between java beans & servlets?
Can you explain in detail 'javax.servlet' package?
What is called servlet mapping?
Describe servlet?
How can you use a servlet to generate a plain text instead of html?
How to generate the server side programming and the advantages of it over the other languages?