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
How can we maintain the integrity of a database by using jdbc?
What is java soft framework?
What is jdbc class forname?
What is drivermanager in java?
What is the full form of jdbc and what is its purpose?
What is a lock in jdbc?
How do I check in my code whether a maximum limit of database connections have been reached?
How to move the cursor in scrollable resultset ?
What is the role of class.forname while loading drivers?
What do you understand by jdbc driver and explain its types?
What is meant by connection string?
What are the different types of interfaces in the api component?
What packages are used by jdbc?
what is the meaning of following code snippets Class c=class.forName(driverClassName); Driver d=(driver)c.newInstance();
What is the use of jdbc api?