Self-Review Exercises

23.1 Fill in the blanks in each of the following statements:

a) A thread enters the terminated state when _________.

b) To pause for a designated number of milliseconds and resume execution, a thread should call method _________ of class _________.

c) A runnable thread can enter the _________ state for a specified interval of time.

d) At the operating-system level, the runnable state actually encompasses two separate states, _________ and _________.

e) Runnables are executed using a class that implements the _________ interface.

f) ExecutorService method _________ ends each thread in an ExecutorService as soon as it finishes executing its current Runnable, if any.

g) In a(n) _________ relationship, the _________ generates ...

Get Java™ How To Program (Early Objects), Tenth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.