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
What is the difference between ojdbc6 and ojdbc7?
What is phantom read and which isolation level prevents it?
What are the utilities of the callablestatement?
What do you understand by jdbc driver and explain its types?
What is jdbc url for mysql?
Briefly tell about the jdbc architecture.
What is JDBC Driver interface?
What is the use of the statement in jdbc?
What is the reason why we need a jdbcrowset like the wrapper around resultset?
What are the jdbc drivers in java?
What are the differences between stored procedure and functions?
If I use the JDBC API, do I have to use ODBC underneath?
What is jdbc and its types?
Is jdbc object oriented?
What class.forname does, while loading the drivers?