WHAT IS THE DIFFERENCE BETWEEN STATEMENT AND PREPAREDSTATEMENT INTERFACE?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
Java 
 775  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    What is the difference between Statement and PreparedStatement interface?

    In case of Statement, query is complied each time whereas in case of PreparedStatement, query is complied only once. So performance of PreparedStatement is better than Statement.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!