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

execute():-execute method is used to fire DDL Command means (CREATE,ALTER,DROP Etc) on to the database,It's return type is true or false.

executeUpdate():Its used to fired DML Command on to the database. like (insert,update,delete) etc.its return type is ResultSet.


executeQuery():is used to only retrieve data from database.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does executeupdate return in jdbc?

970


What is jdbc thin client in oracle?

896


What is the purpose of jdbc resultset interface?

989


How are jdbc statements used?

936


Which package is used for jdbc application?

973


What are drivers available?

1021


Why is jdbc needed?

905


What is jdbc driver manager?

935


Is jdbc faster than hibernate?

993


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

1139


Can resultset be null in java?

924


Why are we using blob datatypes in jdbc?

1073


How many jdbc driver types are there?

920


Explain the main method?

1038


Which is better odbc or jdbc?

992