About Question enthuware.ocpjp.v8.2.1302 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
digitalillusion
Posts: 5
Joined: Wed Feb 25, 2015 4:11 pm
Contact:

About Question enthuware.ocpjp.v8.2.1302 :

Post by digitalillusion »

Hello,

I don't agree with the fact that the option

Replace line //4 and //5 with:
Integer i = map.get(b);
return i == null? 0:i;

is "not required" and I selected it instead of option

There is no need to change //4 and //5.

Infact, the question states "Choose changes that are absolutely necessary to take advantage of generics" and while my choice was not necessary for compilation, the page https://docs.oracle.com/javase/tutorial ... s/why.html reports that one of the advantages of generics is indeed Elimination of casts.

The question is infact ambiguos since absolute necessity may imply getting the most advantage, and I think it should be rewritten to "Choose the minimal changes necessary to take advantage of generics"
Or else the answer I gave should be accepted :)

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

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

Post by admin »

Changed.
thank you for your feedback!
Paul.

digitalillusion
Posts: 5
Joined: Wed Feb 25, 2015 4:11 pm
Contact:

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

Post by digitalillusion »

In any case, your exam simulation teaches to think.
I passed the real exam today, and I would like to sincerely thank you.

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

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

Post by admin »

Great! Congratulations!!
Glad to know that our simulator was helpful in your preparation :)

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 11 guests