About Question enthuware.ocpjp.v8.2.1265 :
Posted: Sun Nov 29, 2015 5:22 am
Second answer
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.List<String> list = new ArrayList<>();
list.add("A");
list.addAll(new ArrayList<>());