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
What is jdbc connection string?
Explain the role of driver in jdbc.
What are jdbc and its components?
What are the new features added to JDBC 4.0?
How to set the attribute concurrency in resultset?
Explain the locking system in jdbc & its types?
What are the functions of the jdbc connection interface?
Why isn't the java.sql.DriverManager class being found?
What does the jdbc databasemetadata interface?
How many types of statements are there in jdbc?
explain about special characters?
Why do you use a data source object for a connection?
Can we have foreign key reference to a non primary key column ?
Differentiate between stored procedure and functions?
What is the advantage of namedparameterjdbctemplate?