• 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

Errata for OCP: Oracle Certified Professional Java SE 8 Programmer II Study Guide - page 396

 
Ranch Hand
Posts: 51
1
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In question 9, I realise there is already an errata listed as "#9: “implements the ForkJoinTask interface” should say “extends the ForkJoinTask class”".... meaning that the question would read: "Assuming MyTask is an abstract class that extends the ForkJoinTask class, what statements about the following code are true? (Choose all that apply.)"

However, when trying to compile the code example, I realised the code only compiles if MyTask, as well as extending ForkJoinTask, also implements its unimplemented methods, AND had a generic type parameter of <Integer>

Sorry to be pedantic on this, but to save anyone else similar confusion if trying to copy the code and compile to understand the question better, it might be easier if the question (or errata) read:

"Assuming MyTask is an abstract class that extends RecursiveTask<Integer>, what statements about the following code are true? (Choose all that apply.)"

I am posting this so that any (unknown) errors in my understanding can be corrected, and not just to be pedantic! If I am missing something, please let me know.  
 
Theo van Kraay
Ranch Hand
Posts: 51
1
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
p.s. I do realise my suggestion would sort of render one of the possible answers a no brainer (i.e. "MyTask Inherits RecursiveTask"). Anyway, just sharing my thoughts. Perhaps not a genuine errata...
 
author & internet detective
Posts: 41860
908
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
Theo,
Since this isn't quite an errata, I've added it to our private list of things that could be clearer. Thanks for sharing.
reply
    Bookmark Topic Watch Topic
  • New Topic