What are the benefits of PreparedStatement over Statement?
Answer Posted / Pratibha Nandan
"PreparedStatements offer several benefits over Statements in JDBC: 1) They allow for parameterized queries, making SQL injection attacks less likely. 2) Precompiled SQL statements can improve performance due to query parsing being done once rather than on each execution. 3) Batch updates using PreparedStatements can also lead to improved performance through reduced network traffic and increased efficiency."
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers