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

Discussion

Which of these is NOT a value of the TimeUnit enum?

  • A.MILLISECONDS
  • B.CENTISECONDS
  • C.MICROSECONDS
  • D.NANOSECONDS

Answer: B

TimeUnit runs from NANOSECONDS through MICROSECONDS, MILLISECONDS and SECONDS up to DAYS. There is no centisecond constant. Using a constant that does not exist is caught at compile time, which is part of why the enum is preferred to a bare millisecond count.

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

Post your comment

Please log in or register to post a comment.