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 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 do I know which jdbc driver to use?

953


How many types of jdbc drivers are there?

943


Give an example of code used for setting up connection with a driver.

895


What are the measures to connect to the db using jdbc?

940


What is a lock in jdbc?

900


What are the methods which can verify the cursor particular position?

950


What is the advantage of namedparameterjdbctemplate?

911


What isolation level is used by the DBMS when inserting, updating and selecting rows from a database?

918


What is two-phase commit in the database?

973


What is represented by the connection object?

1014


What is com mysql jdbc driver?

872


Explain the various types of locking system in jdbc?

829


How to rollback a JDBC transaction?

1030


What is connection commit?

870


What are the different classes through which JDBC represents statements?

868