What is the difference between `Statement` and `PreparedStatement` in JDBC?
`Statement` executes only pre-defined queries, whereas `PreparedStatement` can execute SQL commands with any number of parameters.
Iâ€™m a bit disappointed with this answer. The key difference isnâ€™t about predefined queries, but about parameterization and query optimization.
Can you describe how `PreparedStatement` can improve performance when executing the same query multiple times?