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


Please Help Members By Posting Answers For Below Questions

What is db client?

488


Why would you use setautocommit(false) in jdbc?

654


What is the execute method in java?

545


Can we have foreign key reference to a non primary key column ?

528


What is the latest version of JDBC? What are the new features added in that?

519






How to know howmuch data is truncated?

1911


Why jdbc is used in java?

477


What's the benefit for specifying constraints like not null, primary key explicitly instead of specifying it against the column ?

474


Differentiate between type_scroll_insensitive and type_scroll_sensitive.

518


How does jdbc driver work?

527


What is isolation level? How to set it?

1637


What is connection data?

478


Describe the steps needed to execute a sql query using jdbc.

545


What are the common jdbc exceptions?

515


What is JDBC Batch Processing and what are it’s benefits?

510