何時在Java中調用System.Exit在Java中,有或沒有什么區(qū)別System.exit(0)在下面的代碼中?public class TestExit{
public static void main(String[] args)
{
System.out.println("hello world");
System.exit(0); // is it necessary? And when it must be called?
} }這個文件說:“這個方法永遠不會正常返回?!笔裁匆馑迹?
何時在Java中調用System.Exit
ibeautiful
2019-07-22 19:01:09