what is difference between excute query ()and execute update
()?

Answer Posted / naresh

executeQuery() method used for only selecting the records
and its return value is in the form of ResultSet Object.

executeUpdate() method used for DDL and DML commands and
its returns the int value.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we override the static methods?

568


What is a singleton factory?

508


What is heterogeneous in java?

486


What is array sorting in java?

551


What is string pooling concept?

551






What is a modifier?

858


Explain about object oriented programming and its features?

592


Can we override private constructor in java?

502


Explain what is encapsulation?

602


Can we have two main methods in a java class?

534


How do you avoid global variables?

536


What is the difference between preemptive scheduling and time slicing?

585


What environment variables are required to be set on a machine in order to run Java programs?

612


I want to store more than 10 objects in a remote server? Which methodology will follow?

2630


Why is java logo a cup of coffee?

620