What is the difference between ExecuteUpdate and
ExecuteQuery?



What is the difference between ExecuteUpdate and ExecuteQuery?..

Answer / p.l.n.kumar

ExecuteUpdate is used to execute Insert,Update and
Delete... statements.it's return type is 'int' .

ExecuteQuery is used to execute Select.... statements.It's
return type is 'Resultset' object.

Is This Answer Correct ?    45 Yes 8 No

Post New Answer

More JDBC Interview Questions

What are the factors that the jdbc driver performance depends upon?

0 Answers  


Is jdbctemplate thread safe?

0 Answers  


What is preparedstatement in jdbc?

0 Answers  


What is static Synchronized method in JDBC API? Give an example?

3 Answers   3 Edge Solutions, R Systems, Sirvisetti Global Services,


preparedstatement p= new preparedstatement is it possible ?

10 Answers   Fidelity, IBM, Infrasys,


What is data source in java?

0 Answers  


What is difference between jdbc and odbc?

0 Answers  


How can a java objects be stored in database?

3 Answers   IBM,


I have the choice of manipulating database data using a byte[] or a java.sql.blob. Which has best performance?

0 Answers  


What is jdbc and its advantages?

0 Answers  


How to rollback a JDBC transaction?

0 Answers  


What is connection commit?

0 Answers  


Categories