Page 1 of 1

About Question enthuware.ocpjp.v8.2.1265 :

Posted: Sun Nov 29, 2015 5:22 am
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.

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

Posted: Sun Nov 29, 2015 8:45 am
by admin
You are right. This option needs to be marked correct for Java 8.
thank you for your feedback.
-Paul.