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

Answer Posted / gambhir

executeQuery() is used to perform DDL operation like
(create,alter) while executeUpdate() is used to perform DML
operation like (insert/update/delete).

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of void class?

690


What is the difference between static binding and dynamic binding?

669


Is empty string in java?

701


What is literal example?

635


How does the garbage collector works in java?

657






What is a double vs float?

636


Differences between traditional programming language and object oriented programming language?

669


What is linked hashset and its features?

624


What is close method? How it's different from Finalize & Dispose?

650


What restrictions are placed on method overriding?

732


What is called module?

665


Explain methods specific to list interface?

643


What is java in simple terms?

632


How many ways can we create singleton class?

610


How many types of threads are there in java?

608