What is execute(), executeUpdate() and executeQuery()
methods?
Answer Posted / trio
boolean execute()
Executes the SQL statement in this PreparedStatement
object, which may be any kind of SQL statement.
ResultSet executeQuery()
Executes the SQL query in this PreparedStatement object and
returns the ResultSet object generated by the query.
int executeUpdate()
Executes the SQL statement in this PreparedStatement
object, which must be an SQL INSERT, UPDATE or DELETE
statement; or an SQL statement that returns nothing, such
as a DDL statement.
Is This Answer Correct ? | 39 Yes | 4 No |
Post New Answer View All Answers
What is an SQL Locator?
What is jdbc thin client?
Differentiate between stored procedure and functions?
What does the jdbc resultset interface?
When do we use execute method in java jdbc?
Which jdbc driver is the fastest driver?
What is the difference between jdbc and odbc?
What are the benefits of PreparedStatement over Statement?
What are the different classes through which JDBC represents statements?
How to use JDBC to connect Microsoft Access?
How many categories of jdbc drivers are there?
What is in term of jdbc a datasource?
Why we use jdbc instead of odbc?
What should be done for auto generating primary key id in a table ?
What is setautocommit in jdbc?