About Question enthuware.ocpjp.v8.2.1586 :

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

Moderator: admin

Post Reply
Robbie
Posts: 13
Joined: Sun Mar 27, 2016 1:10 pm
Contact:

About Question enthuware.ocpjp.v8.2.1586 :

Post by Robbie »

If the no arg constructor gets the access modifier of the class wouldn't that maken answer F Constructor for Inner is protected. also a correct answer (together with B)?

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

Re: About Question enthuware.ocpjp.v8.2.1586 :

Post by admin »

Option F is indeed the correct answer.

Robbie
Posts: 13
Joined: Sun Mar 27, 2016 1:10 pm
Contact:

Re: About Question enthuware.ocpjp.v8.2.1586 :

Post by Robbie »

Ah I see it now, the Outer class is not public so answer B is indeed incorrect because the added no-arg constructor for Outer will have default access not public.

I also see that I mentioned option F but there is no F I meant option E (the last option) which indeed is correct.

I think it's funny that this question is rated as Easy, at least it wasn't for me ;)

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

Re: About Question enthuware.ocpjp.v8.2.1586 :

Post by admin »

Subjective. It is just based on a factoid. Not much logic in there :)
Yeah, E. I just scrolled and assumed it was F because you wrote F :D

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 7 guests