Java Reference
In-Depth Information
Strictly speaking, it is not essential that the issue of class unloading be discussed by
this specification, as class unloading is merely an optimization. However, the issue is
very subtle, and so it is mentioned here by way of clarification.
12.8. Program Exit
A program terminates all its activity and exits when one of two things happens:
• All the threads that are not daemon threads terminate.
• Some thread invokes the exit method of class Runtime or class System , and the exit
operation is not forbidden by the security manager.
Search WWH ::




Custom Search