Machine-translated by Google. Questions are authored in English.
Top

Discussion

Which of these is the correct order of arguments to Thread(ThreadGroup, Runnable, String)?

  • A.task, then group, then name
  • B.name, then group, then task
  • C.group, then name, then task
  • D.group, then task, then name

Answer: D

The constructor takes the group first, then the Runnable, then the name. Every Thread constructor that accepts a group puts it first, and the name always comes last where present, so the shorter forms are consistent prefixes of the longest.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.