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
How to insert an image or raw data into database?
What is the function of drivermanager class?
How do we call a stored procedure from jdbc?
What is the JDBC?
What are the exceptions in jdbc?
What is thin driver in jdbc?
Why can't I invoke the ResultSet methods afterLast and beforeFirst when the method next works?
java based application for hospital management
What are types of resultset?
What is jdbc and odbc?
What are common JDBC Exceptions?
What class.forname does, while loading the drivers?
What is the use of callablestatement? Name the method, which is used to prepare a callablestatement.
What is the purpose of jdbc?
How do you determine the sensitivity of the ResultSet object?