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
What does executeupdate return in jdbc?
What is jdbc thin client in oracle?
What is the purpose of jdbc resultset interface?
How are jdbc statements used?
Which package is used for jdbc application?
What are drivers available?
Why is jdbc needed?
What is jdbc driver manager?
Is jdbc faster than hibernate?
What is the limitation of PreparedStatement and how to overcome it?
Can resultset be null in java?
Why are we using blob datatypes in jdbc?
How many jdbc driver types are there?
Explain the main method?
Which is better odbc or jdbc?