Question: what is difference between statement interface and preparedstatement interface?
Answer: PreparedStatement is used to execute dynamic or parameterized SQL queries. PreparedStatement extends Statement interface. ... It gives better performance than Statement interface. Because, PreparedStatement are precompiled and the query plan is created only once irrespective of how many times you are executing that query.