This week's book giveaway is in the Agile/Processes forum.
We're giving away four copies of Building Green Software: A Sustainable Approach to Software Development and Operations and have Anne Currie, Sarah Hsu , Sara Bergman on-line!
See this thread for details.
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

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

 
Ranch Hand
Posts: 216
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: 42109
934
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!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic