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 JDBC Connection? Explain steps to get Database connection in a simple java program.

0 Answers  


What do you mean by database connection pooling?

0 Answers  


What are the 4 types of jdbc drivers?

0 Answers  


How can you load the drivers?

0 Answers  


what is the meaning of following code snippets Class c=class.forName(driverClassName); Driver d=(driver)c.newInstance();

1 Answers  






what is callable statement?

6 Answers   Infogain,


What is jdbc and jpa?

0 Answers  


Why can't I invoke the ResultSet methods afterLast and beforeFirst when the method next works?

0 Answers  


What is Type-2 Driver and when this driver is used?

2 Answers  


Explain the sequence of steps to connect to the database?

3 Answers   Wipro,


Explain the necessary steps to connect to the database in java?

0 Answers  


What is correlated subquery?

0 Answers   emc2, JK Technosoft,


Categories