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

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

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

Related Questions

What is the result of compiling and running the following code?
public class Tester{static int x = 4;int y = 9; public Tester(){System.out.print(this.x); // line 1printVariables();}public static void printVariables(){System.out.print(x); // line 2System.out.print(y); // line 3}public static void main(String... args) { // line 4new Tester();}}
What is the result of compiling and running the following code?
public class Tester{static int x = 4;public Tester(){System.out.print(this.x); // line 1Tester();}public static void Tester(){ // line 2System.out.print(this.x); // line 3}public static void main(String... args){ // line 4new Tester();}}