What will be the output of the following Java program?
public class Main {
static int x;
public static void main(String[] args) {
System.out.println(x);
}
}
0
Compilation Error
Runtime Error
Undefined Behavior
This question is part of this quiz :
Java Variables