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

Answer Posted / bhoopesh alladi

execute()- is for invoking the functions or stored
procedures of SQL by the CallableStatement.

executeUpdata()- is for the operations such as insert,
update or delete on SQL by PreparedStatement, Statement.

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

Is This Answer Correct ?    69 Yes 21 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a statement in java?

511


Which database is used with java?

497


What is connection pooling and why it is used?

524


How many types of jdbc drivers are there?

551


What are the main steps in java to make JDBC connectivity?

570






Is jdbc a middleware?

503


What is the fastest type of JDBC driver?

594


If you are given a choice to implement the code to either insert a record or update if already exist, which approach will you follow ?

578


How we store procedure in oralce for callable statements in jdbc

1850


How do you determine the sensitivity of the ResultSet object?

544


Name different methods for getting streams.

539


What is jdbc connection?

650


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

521


What is jdbc resultsetmetadata interface?

530


Is jdbc a web technology?

492