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

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
devlam
Posts: 50
Joined: Sun Nov 10, 2013 4:39 am
Contact:

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

Post 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 ;)

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests