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

1 Expert Approved Answer
Step: 1 Unlock

a c and d Fields in interfaces declare named ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Programming 8th Questions!