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
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 do we have servlet listeners?
Why do we have servlet filters?
How we can get ip address of client in servlet?
How do you run a servlet?
What are the different mode that servlets can be used?
How servlets are deployed in java?
What's the difference between servlets and applets?
Why servlet is used as controller ? Not JSP? I want complete explation?
What are the steps that are required to handle the multi-threading?
How can we upload the file to the server using servlet?
How does java thread pool work?
What are the new features added to servlet 2.5?
What is java servlet?
How do you design microservices?