Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What's the architecture of a servlet package?

983


What is the purpose of dispatcherservlet properties?

1017


What is the use of servletconfig interface?

993


what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?

989


What is url encoding and url decoding

1088


Explain the architechure of a servlet?

1059


Write a simple servlet program to print the contents of html.

983


How do I support both get and post from the same servlet?

1171


How to rectify errors in java servlet while compilation?

890


What are the advantages of cookies?

1064


How the servlet is loaded?

1009


What is the structure of the http response

1116


Explain the difference between get and post method in servlet?

1079


What does the term localization refer to?

1036


How can you use a servlet to generate a plain text instead of html?

1074