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 is jndi lookup?
In which ways is driver class is registered with drive manager?
What is the JDBC?
Which database is used with java?
Explain creation of statement object with connection method create method with help of an example.
What does executequery return in java?
Why do we need jdbc driver?
How can I determine the isolation levels supported by my DBMS?
Why should we close database connections in java?
How many types of resultset are there in jdbc?
Can I enable requests to a jdbc connection pool for a database connection to wait until a connection is available?
What is jdbc odbc connection?
What is meant by connection string?
How can we store the file in the oracle database?
What types of DataSource objects are specified in the Optional Package?