Oracle Certified Professional Java Se 11 Developer · Free Practice Question Medium

Question 48

Question ID: UKOCP87313


Which of the below classes help you to define recursive task?

Choose 2 options.

  • A Recursion
  • B RecursionAction
  • C RecursionTask
  • D RecursiveAction
  • E RecursiveTask
Reveal correct answers

Correct answers: D, E

Explanation

UKOCP87313:

There are no classes in concurrent package with the names 'Recursion', 'RecursionAction' and 'RecursionTask'. 


Both RecursiveAction and RecursiveTask can be used to define a recursive task.


RecursiveTask is used to define tasks which returns a value where as RecursiveAction is used to define tasks that don't return a value.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need