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 execute(), executeUpdate() and executeQuery()
methods?

Answer Posted / sree

executeUpdate() is for non selecting statements
executeQuery() is for selecting statements.

Is This Answer Correct ?    21 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is jdbc and explain jdbc architecture?

1063


What are the classes and methods used for sending sql statements to database?

1135


What is a lock in jdbc?

999


Which database is used with java?

1001


What are the advantages of using preparedstatement over statement?

1074


How do I write Greek ( or other non-ASCII/8859-1 ) characters to a database?

1040


How do I start debugging problems related to the JDBC API?

1083


If you are given a choice to implement the code to either insert a record or update if already exist, which approach will you follow ?

1052


Does the JDBC-ODBC Bridge support multiple concurrent open statements per connection?

1167


Why do we need jdbc driver?

935


Explain how to make updates to the updatable resultsets.

969


What does executequery return in java?

980


What is the limitation of PreparedStatement and how to overcome it?

1186


What is JDBC DataSource and what are it’s benefits?

1300


What is JDBC Savepoint? How to use it?

1282