This may be silly to ask, but looking at following code raises a question.
public class Outer { public class Inner { public static final int variable = 100; } public static void main(String[] args) { int test = Outer.Inner.variable; // Inner Non-Static accessed // with Class reference? } } How can the non-static nested class be accessed with a class reference?
variableis static, so it can be accessed. That's basically the same concept as with a top-level class.