Win a copy of Murach's MySQL this week in the JDBC and Relational Databases forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Sybex Java OCP 8 Study Guide Typo Question 8 Answer Explanation Appendix C Upgrading from Java 6

 
Ranch Hand
Posts: 215
11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author & internet detective
Posts: 41851
904
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Logged in the errata.  You are very thorough reader. The upgrade exam doesn't exist anymore and you still used those practice questions!
 
reply
    Bookmark Topic Watch Topic
  • New Topic