Java: System.exit(0) vs. System.exit(1)
give answer for this question in detail
|
The exit code of a program basically says if it succeeded. 0 usually means success, and another number means faliure.
This is very useful in command-line applications. The bash shell uses it to enable you to do stuff like this: Code:
# run command2 only of command1 is successful |
All times are GMT -5. The time now is 07:33 PM. |