Question: Which of these field declarations are legal within the body of an interface? Select the three correct answers. (a) public static int ANSWER = 42;
Which of these field declarations are legal within the body of an interface?
Select the three correct answers.
(a) public static int ANSWER = 42;
(b) int ANSWER;
(c) static final int ANSWER = 42;
(d) public int ANSWER = 42;
(e) private static final int ANSWER = 42;
Step by Step Solution
3.37 Rating (163 Votes )
There are 3 Steps involved in it
a c and d Fields in interfaces declare named ... View full answer
Get step-by-step solutions from verified subject matter experts
