What is execute(), executeUpdate() and executeQuery()
methods?
Answer Posted / sree
executeUpdate() is for non selecting statements
executeQuery() is for selecting statements.
| Is This Answer Correct ? | 21 Yes | 18 No |
Post New Answer View All Answers
What is jdbc and explain jdbc architecture?
What are the classes and methods used for sending sql statements to database?
What is a lock in jdbc?
Which database is used with java?
What are the advantages of using preparedstatement over statement?
How do I write Greek ( or other non-ASCII/8859-1 ) characters to a database?
How do I start debugging problems related to the JDBC API?
If you are given a choice to implement the code to either insert a record or update if already exist, which approach will you follow ?
Does the JDBC-ODBC Bridge support multiple concurrent open statements per connection?
Why do we need jdbc driver?
Explain how to make updates to the updatable resultsets.
What does executequery return in java?
What is the limitation of PreparedStatement and how to overcome it?
What is JDBC DataSource and what are it’s benefits?
What is JDBC Savepoint? How to use it?