Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What are the different types of statements?

Answers were Sorted based on User's Feedback



What are the different types of statements?..

Answer / chandrarekha

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 ?    45 Yes 6 No

What are the different types of statements?..

Answer / niranjanravi

statement
preparedstatement
callable sattement

Is This Answer Correct ?    29 Yes 9 No

What are the different types of statements?..

Answer / rashmi

there are 3 types of statements used in jdbc
------
1.createStatement()
2.preparedStatement()
3.callableStatement()


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 once.so we can save the 99 parsings.

The callablestatement is used to call the storedprocedures.

Is This Answer Correct ?    15 Yes 4 No

What are the different types of statements?..

Answer / lol

There are four types of statements(not no which).

Is This Answer Correct ?    8 Yes 15 No

Post New Answer

More JDBC Interview Questions

What is the difference between Minus, and Intersect?

1 Answers  


DB2 Universal claims to support JDBC 2.0, But I can only get JDBC 1.0 functionality. What can I do?

0 Answers  


How will you perform truncation using JDBC?

0 Answers  


What is use of connection pooling?

0 Answers  


What are the types of statements in jdbc?

0 Answers  


Why do I have to reaccess the database for Array, Blob, and Clob data?

0 Answers  


Why do we need jdbc api?

0 Answers  


How can I connect mysql or oracle with java?

0 Answers  


What is Type-2 Driver and when this driver is used?

2 Answers  


How many categories of jdbc drivers are there?

0 Answers  


How can a java objects be stored in database?

3 Answers   IBM,


Which jdbc driver type s is are the jdbc odbc bridge?

0 Answers  


Categories