Home » JAVA Programming » Java Basic » Question
  1. Which of the following is advantage of using PreparedStatement in Java?
    1. More memory usage
    2. Prevents SQL injection
    3. Encourages SQL injection
    4. Slow performance
    5. None of these
Correct Option: B

PreparedStatement in Java improves performance and also prevents from SQL injection.



Your comments will be displayed only after manual approval.