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 an exception in java?

643


How does compareto method work?

522


What is a lambda expression ? What's its use ?

561


What modifiers are allowed for methods in an interface?

642


How big is a pointer?

547






Is main a function?

512


What is the difference between numeric and integer?

509


Is the milky way in a void?

538


How does map works in java?

510


What is object cloning in Java?

629


What is a marker interface?

574


Is simpledateformat safe to use in the multithreaded program?

537


What is the difference between an interface and an abstract class?

536


Which arithmetic operations can result in the throwing of an arithmeticexception?

595


How can an object be unreferenced?

538