接口 SystemExiter
- 所有已知实现类:
JvmSystemExiter
public interface SystemExiter
Interface for exiting the JVM. This abstraction is only useful in order to allow classes that make System.exit calls to be testable, since calling System.exit during a unit test would cause the entire jvm to finish.- 作者:
- Lucas Ward
方法详细资料
exit
void exit(int status)
Terminate the currently running Java Virtual Machine.- 参数:
status
- exit status.- 抛出:
java.lang.SecurityException
- if a security manager exists and itscheckExit
method doesn't allow exit with the specified status.- 另请参阅:
System.exit(int)