Q 53 (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
johnny

Q 53 (scjp.v6.2.443)

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

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

Re: Q 53 (scjp.v6.2.443)

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

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests