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

Discussion

Which method must be provided when extending Thread to give it work?

  • A.start
  • B.execute
  • C.call
  • D.run

Answer: D

Thread's own run does nothing useful unless a Runnable was supplied, so a subclass overrides run to hold the work. start is inherited and should not be overridden, execute belongs to Executor, and call belongs to Callable.

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

Post your comment

Please log in or register to post a comment.