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 is jndi lookup?

888


In which ways is driver class is registered with drive manager?

876


What is the JDBC?

999


Which database is used with java?

899


Explain creation of statement object with connection method create method with help of an example.

906


What does executequery return in java?

868


Why do we need jdbc driver?

832


How can I determine the isolation levels supported by my DBMS?

925


Why should we close database connections in java?

1090


How many types of resultset are there in jdbc?

916


Can I enable requests to a jdbc connection pool for a database connection to wait until a connection is available?

840


What is jdbc odbc connection?

922


What is meant by connection string?

919


How can we store the file in the oracle database?

888


What types of DataSource objects are specified in the Optional Package?

950