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 the purpose of jdbc?
Explain the role of driver in jdbc.
What is jdbc and its types?
Which Java and java.sql data types map to my specific database types?
What is jdbc odbc bridge in java?
What are the main steps in java to make JDBC connectivity?
Is jdbc and orm?
What is the role of class.forname while loading drivers?
Explain some new features available in jdbc 4.0?
What is phantom read and which isolation level prevents it?
What is a jdbc driver and how many jdbc drivers are available?
DB2 Universal claims to support JDBC 2.0, But I can only get JDBC 1.0 functionality. What can I do?
What is namedparameterjdbctemplate?
What are the advantages of using preparedstatement in java?
Compare jdbc and odbc and how is jdbc required in this context.