Difference in System. exit(0) , System.exit(-1), System.exit(1 ) in java

Posted by girinie on Stack Overflow See other posts from Stack Overflow or by girinie
Published on 2010-03-12T17:33:31Z Indexed on 2010/03/12 17:37 UTC
Read the original article Hit count: 352

Filed under:

Hi I like to know difference between the following in java

System.exit(0);
System.exit(-1);
System.exit(1);

When do I have to use the above code appropriately. Thanks

© Stack Overflow or respective owner

Related posts about java