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

Discussion

Which of these types is an interface?

  • A.Runnable
  • B.Thread
  • C.ThreadGroup
  • D.ThreadLocal

Answer: A

Runnable is an interface with a single method. Thread, ThreadGroup and ThreadLocal are all classes, which is why a task class implements the first and extends any of the others only when it genuinely needs their behaviour.

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

Post your comment

Please log in or register to post a comment.