Which modification enables the code fragment to print T…

Given the code fragment:

Which modification enables the code fragment to print TrueDone?

Given the code fragment:

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 opt = l;
Replace line 7 with case 1=

C.
At line 9, remove the break statement.

D.
Remove the default section.



Leave a Reply 1

Your email address will not be published. Required fields are marked *