The API wrote:Terminates the currently running Java Virtual Machine. The argument serves as a status code; by convention, a nonzero status code indicates abnormal termination.
Paul Clapham wrote:You could certainly invent your own conventions about what various status codes mean...
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
That is obviously the convention you are using in your current app. There will be different conventions for different people and it doesn't matter which you use as long as you retain 0 for normal exit.Debdeep Ganguly wrote:System.exit(0): Termination under normal conditions.
System.exit(any +ve number): . . . .
System.exit(any -ve number): . . . .
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Or it could vanish into some sort of cyber‑limbo never to be seen again.fred rosenberger wrote:. . . back to the calling program - which could be the OS, it could be another java program, it could be cron...
