Home » Interview » Technology

Which of the following statements are equal for a variable declared in the interface ? 1. int X=10 2. public int X=10 3. public static final int X=10

Correct Answer: All are equal

Explanation:

All the statements are equal because inside an interface a variable declared will be public static final by default 


← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion