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?

Answers were Sorted based on User's Feedback



What is the difference between ExecuteUpdate and ExecuteQuery?..

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

What is the difference between ExecuteUpdate and ExecuteQuery?..

Answer / vishnuvardhan

ExecuteUpdate method will return integer value.
ExecuteQuery method will return ResultSet value.

Is This Answer Correct ?    45 Yes 7 No

What is the difference between ExecuteUpdate and ExecuteQuery?..

Answer / balu

executeUpdate() --is used for executing non-select
statements

executeQuery() - is used for executing select statements

The above two are valid in SQLServer
Note: but i think in case of Oracle executequery()may also
accept non-select statements

Is This Answer Correct ?    19 Yes 2 No

What is the difference between ExecuteUpdate and ExecuteQuery?..

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

More Servlets Interview Questions

What is lazy loading and what is Generic Servlet Class?

0 Answers  


What do you mean by interservlet communication?

0 Answers  


What methods do we use in Servlet to Applet communication?

3 Answers   Infosys,


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

0 Answers  


what is the difference between ServletContext and ServletConfig

7 Answers  


If a servlet is not properly initialized, what exception may be thrown?

0 Answers  


i am bca student,give me suggest for bright future

18 Answers   BSNL, Future Considerations,


What is servletconfig?

0 Answers  


What is forward() and include() of servlets RequestDispatcher interface?

6 Answers   HCL,


How is the get () method different from the post() method?

0 Answers  


can we use more than one controller in web application

3 Answers   IBM,


What is the difference between Get and Post Method?

12 Answers   T3 Softwares,


Categories