System.exit() behaves the same regardless of the value.

Any int value can be passed to System.exit which is then returned to
the invoking program. This allows any invoking program can tell if/how
the java program came to termination. So commonly any non-zero value
will map to a personal set of error codes.


On Nov 14, 10:38 pm, "Norman Ho" <[EMAIL PROTECTED]> wrote:
> Dose different values for the status in the System.exit() method cause any
> different outcome?  I know a status value of 1 means abnormal termination,
> does it show up on the stacktrace?
>
> Can there be other value of the status other than 0 and 1?
>
> Thanks
>
> Norman.

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to