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 the difference between object oriented programming language and object based programming language?
In case of inheritance what is the execution order of constructor and destructor?
which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?
how to create multithreaded program? Explain different ways of using thread? : Java thread
Difference between default and protected access specifiers?
Is void a return type?
What do the thread?class methods run() and start() do?
What is a treemap in java?
What is locale in java?
What about main thread in java?
What is the use of a copy constructor?
How do you replace a string in java?
What is boolean query?
In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?
How can you generate random numbers in java?