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
Is jdbc faster than odbc?
Can we return resultset in java?
What is difference between java.util.Date and java.sql.Date?
Explain the various types of locking system in jdbc?
What is drivermanager in jdbc?
java based application for hospital management
What is jdbc connection interface?
Is jdbc database independent?
What is the feature of jdbc v4?
Why we use jdbc instead of odbc?
What is an advantage of using the jdbc connection pool?
What is jdbc in dbms?
Explain the steps in writing a java program using jdbc?
List the common jdbc exceptions ?
What are the packages are used in jdbc?