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
Explain jdbc savepoint?
What is the function of setautocommit?
How can I create a custom RowSetMetaData object from scratch?
Can we return resultset in java?
How many types of JDBC Drivers are present and what are they?
What is jdbc drivers in java?
Is uri the same as url?
What are four types of JDBC driver?
What is jdbc odbc bridge?
How can I use the JDBC API to access a desktop database like Microsoft Access over the network?
How to check jdbc connection in linux?
What is ojdbc14 jar?
What is jdbc in java?
How can I get or redirect the log used by DriverManager and JDBC drivers?
What is jdbc resultsetmetadata interface?