Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 2
    The field variable is static, so it can be accessed. That's basically the same concept as with a top-level class. Commented May 14, 2014 at 14:30
  • A non-static data member can not be accessed statically. Your example; however, is of a static data member which is accessed statically. Commented May 14, 2014 at 14:33
  • My query is how can the Non Static nested class 'Inner' be accessed by outer class reference 'Outer' ('Outer.Inner'??), whereas Inner is an Instance member? Commented May 15, 2014 at 12:37