What is execute(), executeUpdate() and executeQuery()
methods?
Answer Posted / srinivasan
execute() - will do the querying the database & also the
update,insert,delete on the database.
executeUpdate() - only the update,insert,delete on the
database.
executeQuery() - only the querying the database.
Is This Answer Correct ? | 80 Yes | 23 No |
Post New Answer View All Answers
What is db client?
Why would you use setautocommit(false) in jdbc?
What is the execute method in java?
Can we have foreign key reference to a non primary key column ?
What is the latest version of JDBC? What are the new features added in that?
How to know howmuch data is truncated?
Why jdbc is used in java?
What's the benefit for specifying constraints like not null, primary key explicitly instead of specifying it against the column ?
Differentiate between type_scroll_insensitive and type_scroll_sensitive.
How does jdbc driver work?
What is isolation level? How to set it?
What is connection data?
Describe the steps needed to execute a sql query using jdbc.
What are the common jdbc exceptions?
What is JDBC Batch Processing and what are it’s benefits?