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
What is class level lock ?
What is a class variable?
Is java util list serializable?
What is the disadvantage of synchronization?
What are the uses of synchronized keyword?
What is super keyword explain with example?
What is array initialization in java?
What are inner classes or non static nested classes in java?
What lambda means?
Why is the main method declared static?
What is object class in java?
What is the effect of keeping a constructor private?
What is a type parameter in java?
Can long be null in java?
Difference between this() and super() in java ?