其实传递一个参数给exit,也没有什么意义。参见:
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.
就是说,仅仅传递给jvm,最多只能告诉它我们的应用程序是否正常退出。
因此我想,这个参数的意义可能仅仅对jvm的设计有用
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.
就是说,仅仅传递给jvm,最多只能告诉它我们的应用程序是否正常退出。
因此我想,这个参数的意义可能仅仅对jvm的设计有用
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货