S

Satya • 3.38K Points
Extraordinary

Q. Which method is used to set parameters in PreparedStatement?

  • (A) setValue()
  • (B) setData()
  • (C) setString() / setInt()
  • (D) setParameterValue()
  • Correct Answer - Option(C)
  • Views: 3
  • Filed under category Java JDBC
  • Hashtags:

Explanation by: Satya
PreparedStatement uses methods like setString(), setInt(), etc. to assign values to placeholders.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.