Introduction to Packages

The method notify() wakes up or notifies the first thread that called wait() on the same object.
The method notifyAll() wakes up or notifies all the threads that called wait() on the same object.
A deadlock occurs when two threads have a circular dependency on a pair of synchronized objects.
Garbage collection in Java is a process whereby the memory allocated to objects, which are no longer in use, may be reclaimed or freed.
The garbage collector runs as a low priority thread and we can never predict when it will collect the objects.