Runtime.exit

Runtime.exit

Class Overview | Class Members | This Package | All Packages

Syntax
public void exit( int status )
Parameters
status
exit status.
Description
Terminates the currently running Java Virtual Machine. This method never returns normally.

If there is a security manager, its checkExit method is called with the status as its argument. This may result in a security exception.

The argument serves as a status code; by convention, a nonzero status code indicates abnormal termination.

Exceptions
SecurityException if the current thread cannot exit with the specified status.
See Also
SecurityException, checkExit