Question: Given the code fragment args) ( 4. public static void main (String boolean opt true ; switch (opt) ( 7 case true: System.out.print (True) break;

Given the code fragment args) ( 4. public static void main (String boolean opt true ; switch (opt) ( 7 case true: System.out.print ("True") break; 10. default: System.out.print ("**"); 12. 13. 14. System. out.println ("Done") Which modification enables the code fragment to print TrueDone? A. Replace line 5 With String opt"true", Replace line 7 with case "true". B. Replace line 5 with boolean optl Replace line 7 with case 1- C. At line 9, remove the break statement. D. Remove the default
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
