Java - Static Keyword
What will be the output of this Java code?
class Demo {
static int x;
static {
x = 10;
System.out.print(x + " ");
}
public static void main(String[] args) {
System.out.print(x);
}
}