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

Is jdbc faster than odbc?

857


Can we return resultset in java?

879


What is difference between java.util.Date and java.sql.Date?

1038


Explain the various types of locking system in jdbc?

839


What is drivermanager in jdbc?

924


java based application for hospital management

3783


What is jdbc connection interface?

945


Is jdbc database independent?

918


What is the feature of jdbc v4?

1055


Why we use jdbc instead of odbc?

923


What is an advantage of using the jdbc connection pool?

830


What is jdbc in dbms?

963


Explain the steps in writing a java program using jdbc?

876


List the common jdbc exceptions ?

953


What are the packages are used in jdbc?

996