Many methods in the class Thread which represent a thread of control, are declared using the throws keyword.
These methods throw exceptions as part of the control flow of working with threads.
The keyword called synchronized will be discussed, which helps you coordinate between competing threads.
If you want to read ahead:
- Chapter 9 in The Java Programming Language discusses all the keywords and concepts related to threads.
- Chapters 3 and 11 in Java Essentials for C and C++ Programmers also discuss threads and provide examples of why you would use
Java's synchronized keyword.