🔥 3-day streak
GitHub Copilot109 / 190
Question 109 of 190
You inherit a legacy Java data-access layer where SQL queries are built with raw string concatenation of user-supplied values (e.g., "SELECT * FROM users WHERE name = '" + name + "'"). You highlight one such method and ask Copilot Chat to modernize it. Which instruction is most likely to produce a secure, maintainable result rather than merely reformatting the existing code?
Reviewed for accuracy · Report an issueNext question