nerdexam
Oracle

1Z0-804 · Question #80

Which three statements are correct about thread's sleep method?

The correct answer is A. The sleep (long) method parameter defines a delay in milliseconds. D. A thread can continue execution before the amount of time defined in the sleep (long) parameter. E. A thread can continue execution after the amount of time defined in the sleep (long) parameter. See the full explanation below for the reasoning.

Question

Which three statements are correct about thread's sleep method?

Options

  • AThe sleep (long) method parameter defines a delay in milliseconds.
  • BThe sloop (long) method parameter defines a delay in microseconds.
  • CA thread is guaranteed to continue execution after the exact amount of time defined in the sleep
  • DA thread can continue execution before the amount of time defined in the sleep (long) parameter.
  • EA thread can continue execution after the amount of time defined in the sleep (long) parameter
  • FOnly runtime exceptions are thrown by the sleep method.
  • GA thread loses all object monitors (lock flags) when calling the sleep method.

How the community answered

(29 responses)
  • A
    76% (22)
  • B
    3% (1)
  • C
    7% (2)
  • G
    14% (4)

Community Discussion

No community discussion yet for this question.

Full 1Z0-804 Practice