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

Discussion

Which of these is a nested type of Thread?

  • A.Thread.Priority
  • B.Thread.Monitor
  • C.Thread.Lock
  • D.Thread.UncaughtExceptionHandler

Answer: D

Thread declares two nested types, the State enum and the UncaughtExceptionHandler interface. There is no nested Priority, Monitor or Lock: priorities are int constants, and the locking API lives in java.util.concurrent.locks.

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

Post your comment

Please log in or register to post a comment.