Answer Posted / suresh
PreparedStatements are precompiled. When you create a
PreparedStatement you supply a SQL statement. This statement
is passed right along to your database where it is compiled
and cached. The advantage of this is that if you are running
a query multiple times the database will not have to compile
it each time before it is run. This can result in a hefty
performance boost.
Read more: How to use a Java Prepared Statement | eHow.com
http://www.ehow.com/how_5386522_use-java-prepared-statement.html#ixzz12INtbKn4
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Which package contains jdbc api?
How can you know about drivers and database information ?
Explain about the Try Block?
How can you retrieve data from the resultset using jdbc?
Is possible to open a connection to a database with exclusive mode with JDBC?
How many locking systems are there in jdbc?
What is phantom read and which isolation level prevents it?
Explain about DSN?
How do I insert an image file (or other raw data) into a database?
What are collection pools?
What is the role of the jdbc drivermanager class?
Explain some new features available in jdbc 4.0?
password, is stored in as plain text. What can I do to protect my passwords?
What is jdbc databasemetadata interface?
What is executeupdate in java?