Java Reference
In-Depth Information
5.
You need to be careful about what operations you perform on the main thread. For ex-
ample, if you add the following code to the end of
main( )
, the program will never
terminate because it will be waiting for the main thread to end!
Chapter 11 Self Test
grams?
implement
Runnable
?