Java - Encapsulation
What will be the output of this Java code?
class Box {
private int size = 5;
public int getSize() { return size; }
}
public class Test {
public static void main(String[] args) {
Box b = new Box();
System.out.println(b.size);
}
}