Java / JDBC
Why JDBC PreparedStatement is preferred?
PreparedStatement is precompiled so it eliminates the overhead of compiling again when the query is executed. PreparedStatement also automatically escapes special character and eliminates sql injection threat.
More Related questions...