Which JDBC statement is used when you need to execute dynamic SQL with different parameters at runtime?

Last Updated :
Discuss
Comments

Which JDBC statement is used when you need to execute dynamic SQL with different parameters at runtime?

Statement

PreparedStatement

CallableStatement

ResultSet

Share your thoughts in the comments