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


Please Help Members By Posting Answers For Below Questions

How can you retrieve data from the resultset using jdbc?

547


What is the difference between client and server database cursors?

595


What is DML?

569


Briefly tell about the jdbc architecture.

551


What is JDBC ResultSet?

590






Is java a database?

494


What are the differences between statement and preparedstatement interface?

513


What is a jdbctemplate?

518


What are the main components of JDBC ?

572


How to check jdbc driver version in websphere?

543


Prepared statements are faster. Why?

606


Why do we need jdbc driver?

474


What is an encrypted internet connection?

499


What is meant by dao?

518


What is a lock in jdbc?

539