public static void exit(int status)Terminates the currently running Java Virtual Machine. The argument serves as a status code; by convention, a nonzero status code indicates abnormal termination.
This method calls the exit method in class Runtime. This method never returns normally. The call System.exit(n) is effectively equivalent to the call: Runtime.getRuntime().exit(n)
这里不会谁笑话谁的,大家讨论而已,我也不清楚,给你提供点参考.
This method calls the exit method in class Runtime. This method never returns normally. The call System.exit(n) is effectively equivalent to the call: Runtime.getRuntime().exit(n)
这里不会谁笑话谁的,大家讨论而已,我也不清楚,给你提供点参考.
This method calls the exit method in class Runtime. This method never returns normally. The call System.exit(n) is effectively equivalent to the call: Runtime.getRuntime().exit(n)
这里不会谁笑话谁的,大家讨论而已,我也不清楚,给你提供点参考.
by convention, a nonzero status code indicates abnormal termination.
常态情况下,System.exit(0);为什么区分常态和非常态退出方式,就不得而知了。