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