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?................

Answer Posted / narasimha rao bodagala

Hey this is an interface.

in the jdbc API they designed all the interface. which you
can use any interface based on that you can create the
implemented class method.

for this you can call in the core java design
pattern..abstract factory pattren..

you can try to see the API you can understand more.

preparedstatement---pre compiled statement.

first time it's compile and second time it will pass
dynamically.

make sure that should be done in DB side only once.

one time compile and next time passing the values into the
query then execute.

overall story behind this one time compile many times execute.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does a file store compare with a jdbc store?

622


What are the exceptions in jdbc?

492


Is jdbc a web technology?

486


What types of DataSource objects are specified in the Optional Package?

495


Explain different types of locks in jdbc?

502






What is the use of JDBC DriverManager class?

547


How to use JDBC API to call Stored Procedures?

538


How can we store the file in the oracle database?

504


Compare jdbc and odbc and how is jdbc required in this context.

514


Differentiate between a statement and a preparedstatement.

487


What is jdbc thin client?

493


What are jdbc?

534


What is jdbc odbc driver?

564


State the different connection methods used for creating different types of sql.

490


What is ODBC and JDBC? How do you connect the Database?

525