Home > DeveloperSection > Interviews > What is the difference between Statement and PreparedStatement interface?

Posted on    May-15-2015 11:54 PM

 Java Java 
Ratings:
 1 Answer(s)
  513  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Points:4035
Posted on    May-15-2015 11:54 PM

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.

Don't want to miss updates? Please click the below button!

Follow MindStick