Java Reference
In-Depth Information
InputStream
reached?
-1
11
.
What type of stream is used to read binary data?
DataInputStream
character-based I/O
____________.
automatic resource management
nally
block is generally a good approach. True or False?
True
Chapter 11: Multithreaded Programming
grams?
Multithreading allows you to take advantage of the idle time that is present in nearly
all programs. When one thread can't run, another can. In multicore systems, two or
more threads can execute simultaneously.
Multithreading is supported by the
Thread
class and the
Runnable
interface.
implement
Runnable
?
You will extend
Thread
when you want to override one or more of
Thread
's meth-
ods other than
run( )
.