Assuming MyTask is an abstract class that implements the ForkJoinTask interface, what statements about the following code are true?
C. MyTask inherits RecursiveTask.
OCA Java 6, OCP Java 6, OCP Java 8
[OCP 11 Complete Study Guide] [OCP 11 Programmer I Book] [OCP 11 Programmer II Book] [OCP 11 Practice Tests Book] [OCA 8 Book] [OCP 8 Book] [OCP 8 Practice Tests Book] [Blog]
Scott Selikoff wrote:It should say "extends the ForkJoinTask class", not inherits the interface. Errata noted.
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
OCA Java 6, OCP Java 6, OCP Java 8
[OCP 11 Complete Study Guide] [OCP 11 Programmer I Book] [OCP 11 Programmer II Book] [OCP 11 Practice Tests Book] [OCA 8 Book] [OCP 8 Book] [OCP 8 Practice Tests Book] [Blog]
OCA Java 6, OCP Java 6, OCP Java 8
Assume the following:
Missing package and import statements: If sample code do not include package or import statements, and the question does not explicitly refer to these missing statements, then assume that all sample code is in the same package, and import statements exist to support them
[OCP 11 Complete Study Guide] [OCP 11 Programmer I Book] [OCP 11 Programmer II Book] [OCP 11 Practice Tests Book] [OCA 8 Book] [OCP 8 Book] [OCP 8 Practice Tests Book] [Blog]
OCA Java 6, OCP Java 6, OCP Java 8
[OCP 11 Complete Study Guide] [OCP 11 Programmer I Book] [OCP 11 Programmer II Book] [OCP 11 Practice Tests Book] [OCA 8 Book] [OCP 8 Book] [OCP 8 Practice Tests Book] [Blog]
(...) such as ConcurrentHashMap and ConcurrentDeque.
OCA Java 6, OCP Java 6, OCP Java 8
T Vergilio wrote:On page 393, under "Be able to use the concurrent collection classes":
(...) such as ConcurrentHashMap and ConcurrentDeque.
There is no such thing as ConcurrentDeque. ConcurrentLinkedDeque, maybe?
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Jeanne Boyarsky wrote:one *could* insert the missing import up top
OCA Java 6, OCP Java 6, OCP Java 8
#9: Choice D contains a typo and doesn't make sense as written. It should say "The code produces an infinite loop at runtime not the code produces a ForkJoinPool at runtime.
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
The errata says:
Choice D contains a typo and doesn't make sense as written. It should say "The code produces an infinite loop at runtime not the code produces a ForkJoinPool at runtime.
Any sufficiently advanced technology will be used as a cat toy. And this tiny ad contains a very small cat:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|