ThreadGroup
- Based on the Functionality we can Group Threads into a Single Unit which is Nothing but ThreadGroup i.e. ThreadGroup Represents a Set of Threads.
- In Addition a ThreadGroup can Also contains Other SubThreadGroups.
ThreadGroup
Introduction
Diagram:
Exception: An unwanted unexpected event that disturbs normal flow of the program is called exception.
Example:
It is highly recommended to handle exceptions. The main objective of exception handling is graceful (normal) termination of the program.
Data Hiding
class Account {
private double balance;......................;......................;
}
Note: