Page 1 of 1

About Question enthuware.ocpjp.v8.2.1270: probably a typo

Posted: Mon Feb 05, 2018 12:46 pm
by jankur
Hi, probably there is a typo in the explanation related to the last checkbox option:

Code: Select all

List<String> list = new ArrayList<>(10);
because there is size() method in List, not getSize():
[...] So list.getSize() would still return 0.
Additionally: there are some new line chars missing in the main explanation, so sample code lines look like they have invalid comments, for example:
Map<String, List<String>> myMap = new HashMap<String, List<String>>();In Java SE 7, you can substitute the parameterized type of the constructor with an empty set of type parameters (<>):

Re: About Question enthuware.ocpjp.v8.2.1270: probably a typ

Posted: Mon Feb 05, 2018 9:27 pm
by admin
You are right. Fixed.
thank you for your feedback!