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<>());
About Question enthuware.ocpjp.v8.2.1265 :
Moderators: Site Manager, fjwalraven
-
- Posts: 27
- Joined: Tue Sep 22, 2015 1:01 pm
- Contact:
About Question enthuware.ocpjp.v8.2.1265 :
Second answer
-
- Site Admin
- Posts: 10402
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1265 :
You are right. This option needs to be marked correct for Java 8.
thank you for your feedback.
-Paul.
thank you for your feedback.
-Paul.
Who is online
Users browsing this forum: No registered users and 6 guests