Line 20 does not compile because the enum name is missing before the enum value green.
I am trying to understand what this line is talking about. I only see the error of the semicolon when I compile and run it, so my answer is B.
tb864615.OCPJAVASE17PT.c14.015
Lesson Reference: Chapter 14: Practice Test 3
Difficulty: hard
What is the output of the following application?
A. Painting: 00FF00
B. Exactly one line of code does not compile.
C. Exactly two lines of code do not compile.
D. Three or more lines of code do not compile.
E. The code compiles but prints an exception at runtime.
F. None of the above.
Rationale
Line 10 does not compile because line 9 is missing a semicolon (;) at the end of it.
A semicolon is required after a list of enum values if the enum containsanything besides the list of values.
Line 20 does not compile because the enum name is missing before the enum value green.
For these two reasons,option C is correct.