Page 1 of 1

About Question com.enthuware.ets.scjp.v6.2.443 :

Posted: Sat Nov 23, 2013 8:25 am
by devlam
I don't follow the compiler-generated code:

Code: Select all

 protected Outer.Inner(Outer);
The (Outer) looks like a parameter, but there is no parameter Outer. There is a type Outer but... now I'm confused ;)

Re: About Question com.enthuware.ets.scjp.v6.2.443 :

Posted: Sat Nov 23, 2013 8:55 am
by admin
This is beyond the scope of the exam but just for your information every non-static inner class gets a reference to the instance of its outer class. The generated code is just conveying that information.

HTH,
Paul.