About Question enthuware.ocpjp.v8.3.1922 :

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
Cannelids
Posts: 25
Joined: Thu Jun 01, 2017 2:50 pm
Contact:

About Question enthuware.ocpjp.v8.3.1922 :

Post by Cannelids »

Hi - Re the explanation for why the fourth option does not compile:
"Since the variable names is of type List<String>, its addAll method can only accept objects whose declared type is a String. Declared type of oa[0] and oa[1] is Object and therefore it will not compile. The compiler doesn't know that these elements actually hold Strings"
I think this is a bit off in that the method need a List<String>, not just individual Strings, so even if the elements passed here were typed to String it still would not compile.

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

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

Post by admin »

You are right. The explanation is off. Fixed.

thank you for your feedback!
If you like our products and services, please help us by posting your review here.

Cannelids
Posts: 25
Joined: Thu Jun 01, 2017 2:50 pm
Contact:

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

Post by Cannelids »

Thanks!

Post Reply

Who is online

Users browsing this forum: No registered users and 21 guests