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

Which is the methods of generated servlet?

1225


What methods do you use in servlet - applet communication?

1044


How do you get the ip address of the client in servlet?

1015


What is the type of method for sending request from http server?

1109


What is the use of servlet context?

1045


When servlet is loaded?

1080


How the JSP file will be executed on the Server side?

1141


What is called Scriptlet?

1100


What is the functionality of actionservlet and requestprocessor?

1090


How to make sure a servlet is loaded at the application startup?

1043


What is the use of httpservletresponsewrapper?

975


What is the use of request dispatcher interface?

1014


Is servlet thread safe?

994


How httpservlet is different from the genericservlet?

1129


If some new data has entered the database, explain how can a servlet refresh automatically?

1296