The above quote is from the Explanation part of the question.If the inner class is non static, all the static and non-static members of the outer class are accessible (otherwise only static are accessible) So option 1, 2 are valid.
andIf the inner class is non static,....
seem to allude that a static class is allowed inside a method.....otherwise only static are accessible....
To the best of my understanding, no class or variable is allowed to be static inside any method.
Am I missing something here? Thanks.
Schmichael