Page 1 of 1

Q 53 (scjp.v6.2.443)

Posted: Sat Oct 29, 2011 6:48 am
by johnny
Q: Which statements regarding the following code are correct?

class Outer
{
private void Outer() { }
protected class Inner
{
}
}

A: This code will not compile.
-------
Could you please elaborate on this answer or give a short explanation?
Because for me it is rather unclear. Thanks in advance.

Re: Q 53 (scjp.v6.2.443)

Posted: Sat Oct 29, 2011 9:42 am
by admin
The option you've quoted is not marked as a right answer. Option 5, "Constructor for Inner is protected." is marked as the right answer. A detailed explanation is already provided.

HTH,
Paul.