What will be the output of the following code?
interface X {
int VALUE = 10;
}
class Y implements X {
public static void main(String[] args) {
System.out.println(VALUE);
}
}
10
Compilation Error
Runtime Error
NullPointerException
This question is part of this quiz :
Java Interfaces