What is Statement and PreparedStatement? whatz the
difference?
Answer Posted / harish
When you execute a SQL query with Statement. It parses and
executes in the database each time. Where as in
PreparedStatement, first time it parses and executes and
subsequent times, it directly substitute the values in the
query and executes. It is faster than Statement
| Is This Answer Correct ? | 11 Yes | 2 No |
Post New Answer View All Answers
What is setautocommit in jdbc?
What is the purpose of the jdbc resultset interface?
What is the difference between executing, executequery, executeupdate in jdbc?
Why prepared statements are faster?
Which type of driver provides jdbc access via one or more odbc drivers?
What is the role of class.forname while loading drivers?
What is jdbc dialect?
What is benefit of using preparedstatement in java?
What are the flow statements of jdbc?
What is jdbc and odbc in java?
What is connection data?
How can we execute stored procedures using callablestatement?
Define preparedstatement.
What are the components of jdbc?
Explain in detail about JDBC and its general features?