exit</tt> (equivalently,
System.exit</tt>) method is invoked, or
exit</tt>
halt</tt> method, which forcibly
IllegalStateException</tt> to be thrown.
exit</tt> the expectation is
uncaughtException</tt> method of the thread's <tt>
ThreadGroup</tt> object. The default implementation of this method
System.err</tt> and
hook- An initialized but unstarted <tt>
Thread</tt> object
IllegalArgumentException- If the specified hook has already been registered,
IllegalStateException- If the virtual machine is already in the process
SecurityException- If a security manager is present and it denies
RuntimePermission(\"shutdownHooks\")</tt> * Since: : 1.3 * See Also: : <dd>
removeShutdownHook(java.lang.Thread),
halt(int),
exit(int)