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 is database deadlock ?

0 Answers  


why we don't use the type 2 driver for connect to the database in jdbc?

1 Answers   TCS,


write a query to select name from one table which has id,name and salary from another table which has id, sal where the salary is the second maximum

3 Answers   Bosch, HireCraft, Infosys,


What is the use of getGeneratedKeys() method in Statement?

0 Answers  


Is java a database?

0 Answers  


What are the Isolation level in JDBC transaction?

1 Answers  


How do you determine the sensitivity of the ResultSet object?

0 Answers  


What is jdbc thin client?

0 Answers  


what happen if we set JDBC string to NULL?

0 Answers   Sapient,


How to use JDBC to connect Microsoft Access?

0 Answers  


What is PreparedStatement?

6 Answers   Infogain, Wipro,


How can I retrieve a String or other object type without creating a new object each time?

0 Answers  


Categories