What is SQL injection and how can it be prevented in Java?
SQL injection is a type of attack where user data is encrypted and passed directly to the database for execution.
Thatâ€™s incorrect. SQL injection exploits vulnerabilities where user data is improperly included in SQL queries, not by encrypting it.
Can you explain the difference between SQL injection and encryption techniques?