7.30 Errors and Exceptions in Java and Multithreaded Programming
Alternately, we can specify
• public Thread(ThreadGroup group, Runnable target)
• public Thread(ThreadGroup group, String name)
• public Thread(ThreadGroup group, Runnable target, String name)
7.20 Key Points
1. Errors are of three types, viz., syntactical errors, logical errors and bugs. Syntactical errors
can be caught by a compiler. Bugs can be fixed by assert statements and debugging.
2. Exceptions, on the other hand, are unusual conditions that occur at a run time and can lead
to errors that can crash a program. Exceptions can be synchronous exceptions like IOEx-
ception. These can be predicted.
3. Exceptions can be asynchronous exceptions like OutOfMemory exception that can ...