Declarations and Access Control Logic
© examsiri.com
Question : 16 of 29
Marks:
+1,
-0
Given:
Which code inserted at line 14 causes the foo method to print RED, GREEN, and BLUE?
1. public class Ball{
2.   public enum Color { RED, GREEN, BLUE };
3.   public void foo(){
4.    /* insert code here*/
5.    { System.out.println(c); }
6.  }
7. }Which code inserted at line 14 causes the foo method to print RED, GREEN, and BLUE?
Go to Question: