:: Home Page            
 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                      
Categories >> Software >> Java Related >> Java J2EE >> JDBC


 Core Java interview questions  Core Java Interview Questions (1720)
 Advanced Java interview questions  Advanced Java Interview Questions (331)
 Swing interview questions  Swing Interview Questions (43)
 EJB interview questions  EJB Interview Questions (134)
 Servlets interview questions  Servlets Interview Questions (255)
 Struts interview questions  Struts Interview Questions (195)
 JDBC interview questions  JDBC Interview Questions (187)
 JMS interview questions  JMS Interview Questions (9)
 SunOne interview questions  SunOne Interview Questions (3)
 J2EE interview questions  J2EE Interview Questions (71)
 Weblogic interview questions  Weblogic Interview Questions (145)
 Websphere interview questions  Websphere Interview Questions (14)
 Java Networking interview questions  Java Networking Interview Questions (20)
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions (87)
What are the different types of statements?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
  Re: What are the different types of statements?
# 1
callable sattement
Is This Answer Correct ?    27 Yes 9 No
  Re: What are the different types of statements?
# 2
Statement interface----createStatement() method is useful
to create statement object and to execute simple queries...

PreparedStatement interface---derived from the Statement
interface...preparestatement() method used to create
preparedstatement object and used to execute queries with
unknown parameters or where in the parameters are provided
at the run-time

CallabaleStatement interface----derived from the
preparedstatement interface and helpful in executing stored
procedures...prepareCall() method is used to create the
callabalestatement object
Is This Answer Correct ?    43 Yes 6 No
  Re: What are the different types of statements?
# 3
There are four types of statements(not no which). 
Is This Answer Correct ?    7 Yes 14 No
  Re: What are the different types of statements?
# 4
there are 3 types of statements used in jdbc

createStatement returns the object of statement.through this we can call methods belongs

to the statement interface.preparedStatement returns the object of preparedstatement.through this we can call methods belongs

to the preparedstatement interface.

The difference b/w statement and preparedstatement is :

if we use statement the sql querry parses by the database server each and every time.when

we send the request. but by using preparedstatement the sql querry parses only once and that

parsed querry is used every time.

for example if there are 100 sql statements by using statement 100 parsings are necessary.

but by using preparedStatement the parsing is happened only we can save the 99 parsings.

The callablestatement is used to call the storedprocedures.
Is This Answer Correct ?    14 Yes 3 No

Other JDBC Interview Questions
  Question Asked @ Answers
How a driver can be loaded?   1
I have written a program to connect to database using odbc.Can this Application run on any Platform????   2
What are statements in JAVA ? CTS 1
What does Class.forName return? IBM 8
Hi........I need to create a dropdown box using java.....this box should show the values that should be taken from the database...... Thank you....   1
is that compulsory to have Primarykey-forignkey for joints (outer inner,equal) IonIdea 2
Which Driver is preferable for using JDBC API in Applets?   2
Diff bet.. Function and Trigger? Logica-CMG 3
How can you sort dates?   1
What is the syntax of URL to get connection?   1
What is the use of prepared statement?Ans:used to execute pre compiled the question is when that precompiled statement will be execute or comiple?................ TCS 6
how to use CallableStatement? specially how to use their index given ..   1
For more JDBC Interview Questions Click Here 

Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
Copyright 2013  All Rights Reserved.   ::