Question: Question: ( A ) Implement a solution using defensive programming techniques to lower the risks of SQL injection in the below code. ( B )
Question: A Implement a solution using defensive programming techniques to lower the risks of SQL
injection in the below code. B What defensive programming technique did you chose to employ and
explain why you chose itFull credit only given only when discussing the software mitigation designed
for this particular injection scenario.C Please include any references in a standard reference format
such as APA, MLA, Chicago, or IEEE.
Class.forNamecommysqljdbcDriver";
System.out.printlnDriver loaded";
private void showGrade
String sid tfSSID.getText;
String courseId tfCourseId.getText;
try
String queryString "select firstName, mi "lastName, title, grade from Student,
Enrollment, Course "where Student.sid sid and Enrollment.courseId
courseId and Enrollment.courseId Course.courseId
and Enrollment.sid Student.sid";
ResultSet rset stmtexecuteQueryqueryString;
Answer:
ABC
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
