S

Satya • 3.38K Points
Extraordinary

Q. Which interface allows executing parameterized queries safely?

  • (A) Statement
  • (B) PreparedStatement
  • (C) CallableStatement
  • (D) ResultSet
  • Correct Answer - Option(B)
  • Views: 5
  • Filed under category Java JDBC
  • Hashtags:

Explanation by: Satya
PreparedStatement prevents SQL injection and improves performance by precompiling queries.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.