Question 1
What is the result of compiling and running the following code?
class Demo {
int value;
Demo() {
value = 10;
}
public static void main(String[] args) {
Demo d = new Demo();
System.out.println(d.value);
}
}