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.
look that is a method local inner class so how can you create its instance before declaring it, what I mean is in a method how can you use something that has not yet been declared. but the other(regular) inner class's instance can be created. which will be accessed.
I hope its the correct reason.
SCJP 1.6 96%
Joined: Dec 10, 2009
if there was no method local inner class and just the other two classes(one the outer and one the inner) then the inner one would be accessed because the inner one is closely associated with the TestInners class...