A full explanation of Access Modifiers in Java can be found here. But how do they interact with Inner classes?
public, as usual, gives unrestricted access to any scope able to access the type.
public class OuterClass {
public class InnerClass {
public int x = 5;
}
p...