ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
what is difference between excute query ()and execute update
()?
 Question Submitted By :: Gopalraop
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is difference between excute query ()and execute update ()?
Answer
# 1
execute query() used in select operation.
execute update() is used in delete, update and insert 
operations.
 
Is This Answer Correct ?    1 Yes 0 No
Mano
 
  Re: what is difference between excute query ()and execute update ()?
Answer
# 2
execute query() returns a single resultset object.
exceute update() excecutes the insert, update and the delete
operation of the sql statement.This returns the integer
value or say the number of record affected by the SQL
statement execution.
 
Is This Answer Correct ?    1 Yes 0 No
Ashwani
 
 
 
  Re: what is difference between excute query ()and execute update ()?
Answer
# 3
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 ?    0 Yes 0 No
Gambhir
 
  Re: what is difference between excute query ()and execute update ()?
Answer
# 4
excuteQuery() its method used perform select query and 
delete query return ResultSet object.
 excuteUpdate() used to perform DML operation return type 
int
 
Is This Answer Correct ?    1 Yes 0 No
Vikneswarank
[Jadian]
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
What is an enumeration class?  2
What is a Wrapper class?  3
jdbc drivers? Wipro7
What is the ResourceBundle? Elementus-Technologies2
how to handle http request in struts Polaris2
What are types of Java applications?  2
What are the steps to do connection pooling in weblogic? TCS1
What is the default modifier in Interface?  2
write a simple program inheritance? Polaris1
Difference between String and StringBuffer. IBM3
What is the use of Getters and Setters method ?  2
What are Access Specifiers and Access Modifiers. TCS3
While opening the file, what type of exceptions can be caught?  3
What is the difference between array and arraylist? what is the difference between arraylist and linkedlist? EDS4
What is an abstract class? Wipro5
whats string ? HCL4
To obtain design information about an object, which class in used?  1
what is the use of declaring constructor as private? Sai-Softech3
What are inner and anonymous class?  2
1).what is the difference between below examples String s="vijay"; String s=new String("vijay"); TCS11
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com