Java - Packages and Access Control
What will be the output of the following Java code?
public class Demo {
public int value = 10;
}
public class Test {
public static void main(String[] args) {
Demo d = new Demo();
System.out.println(d.value);
}
}