ExamQuestions.com

Register
Login
Java SE 8 Programmer Exam Questions

Oracle

Java SE 8 Programmer

21 / 76

Question 21:

Given the code fragment: 
image
Which modification enables the code fragment to print TrueDone? 

Answer options:

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.