Sybex
Java OCP 8 Study Guide Typo Question 8 Answer Explanation Appendix C Upgrading from Java 6
Question 8 at page 638
8. Which of the following compile? (Choose all that apply.)
A. List<Integer> l1 = new ArrayList();
B. List<Integer> l2 = new ArrayList<>();
C. List<Integer> l3 = new ArrayList<Integer>();
D. List<> l4 = new ArrayList<Integer>();
F. List<Integer> l5 = new List<Integer>();
G. ArrayList<int> l6 = new List<int>();
Typo at page 646 in explanation
"Option F does not compile because primitives are not allowed to be ArrayList types. "
It should be Option G instead of Option F.
Small typo, nothing important.
by alinvlad05