This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Mike can you explain the above code . thanks . pooja .
Joined: Mar 13, 2004
Normally, i can be accessed from anywhere in the package, but j can only be accessed within class Inner.
However, an outer class has special access to the members of an Inner class.
Since i and j are instance members, they only exist when an instance of Inner is created. "this" in Outer refers to an instance of outer. "this.r" or just plain "r" can be used to access an instance member of inner.