About Question enthuware.ocpjp.v8.2.1265 :

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
lveto15
Posts: 27
Joined: Tue Sep 22, 2015 1:01 pm
Contact:

About Question enthuware.ocpjp.v8.2.1265 :

Post by lveto15 »

Second answer
List<String> list = new ArrayList<>();
list.add("A");
list.addAll(new ArrayList<>());
can be also used in Java 8 (it compiles without any problems). Explanation mentions Java 7 - don't understand the reason why it is not included while this is Java 8 set.

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

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

Post by admin »

You are right. This option needs to be marked correct for Java 8.
thank you for your feedback.
-Paul.

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests