What is execute(), executeUpdate() and executeQuery()
methods?

Answer Posted / bharat

executeUpdata()= is for the operations such as Insert,
update and delete on SQL by PreparedStatement or Statement.

executeQuery()= is for operation select of Sql by
PreparedStatement or Statement.

Is This Answer Correct ?    5 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does a file store compare with a jdbc store?

633


How does a custom RowSetReader get called from a CachedRowSet?

567


How to update a resultset programmatically?

589


What are different types of JDBC Drivers?

530


Write an sql to find all records having all numeric characters in a field ?

489






How many ways that we can view a result set?

531


Differentiate between stored procedure and functions?

616


What is the return type of execute, executequery and executeupdate?

644


What is the purpose of jdbc resultset interface?

570


What do you mean by batch processing in jdbc?

519


Which interface is responsible for transaction management in jdbc?

455


Is odbc an api?

514


What is a connection string used for?

501


How many types of JDBC Drivers are present and what are they?

498


Why should we close database connections in java?

683