exit(0) means exit without any error;
exit(x) means exit with error x.
just like system call~~~

解决方案 »

  1.   

    if you know C, probably you what it means. if you don't, never mind. just remember 0 stands normal but 1 for abnormal.
      

  2.   

    exit(0) is exit fully!
    exit(1) is close the windows but not exit!
      

  3.   

    jungleford(风清扬) is right
      

  4.   

    对于你自己的程序没有任何区别,因为程序已强行退出,无法对它进行处理。
    括号里面的整数代表了错误级别(ERRORLEVEL),这是对操作系统起作用的。
    0代表正常public class Test{
       public static void main(String[] args){
          System.exit(0);
       }
    }在dos命令行
    java Test
    执行后,立即执行
    IF ERRORLEVEL==0 dir

    IF ERRORLEVEL==1 dir
    你就会看出区别
      

  5.   

    c语言不会的人
    有点难说过去
    因为你现学java力不从心