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  >>  Java J2EE  >>  Java Related  >>  JDBC
 
 


 

 
 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
how to use CallableStatement?
specially how to use their index given ..
 Question Submitted By :: Gaursh
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how to use CallableStatement? specially how to use their index given ..
Answer
# 1
CallableStatement object is used to call the stored
procedure and stored procedure is nothing but it's block of
code and it's identified unique name

ex

CallableStatement cs=con.prepareCall();
cs.executeUpdate(Call"{procedure name}");


con is a Connection object
It has three parameter

IN
OUT
INOUT

IN parameter used to store any value to stored procedure
using setXX() method..

OUT parameter used to get the information or values from the
stored procedure using getXX() method,that object to
registered using registerOutParameter()

INOUT used to both store and get the information...
 
Is This Answer Correct ?    6 Yes 1 No
Suresh
 

 
 
 
Other JDBC Interview Questions
 
  Question Asked @ Answers
 
What is a PreparedStatement? Infosys3
How to handle when the database crashes while reading the data from the database? IBM1
I have written a program to connect to database using odbc.Can this Application run on any Platform????  1
what is CallableStatement and what is its usage?  1
what is meant by connection pooling?  3
how to retrieve sql exceptions Bosch2
What is the difference between Minus, and Intersect?  1
Statement, PrepareStatement and Callable all these are interfaces. Thought it is a interface how come we are creating objects and calling methods("preparestatement()") in it. In which class this method is defined. Please let me know. Thanks in advance. example: PreparedStatement pre = con.prepareStatement( "UPDATE COFFEES SET SALES = ? WHERE COF_NAME LIKE ?");  2
When you will get error like ?No suitable driver??  1
How to find the column count in resultset? Wipro1
How can you sort dates?  1
Are there any ODBC drivers that do not work with the JDBC- ODBC Bridge?  1
What type of drivers are used for web application?  2
What is the use of prepared statement?Ans:used to execute pre compiled statement...so the question is when that precompiled statement will be execute or comiple?................ TCS5
How do you debug PL/SQL code?  1
What type of driver called is pure Java driver? Vertex3
What is Statement and PreparedStatement? whatz the difference?  2
What are the Normalization Rules?  2
How warnings are retrieved in JDBC?  1
signature of init method?  2
 
For more JDBC 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