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

Posted on    May-15-2015 11:54 PM

 Java Java 
 1 Answer(s)
  697  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

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