+ 1
Difference between System.exit(0) and System.exit(any number);
I have searched it for internet but didn't get the accurate answer ...
2 Answers
+ 7
exit(0)Â : Generally used to indicate successful termination.
exit(1) or exit(-1) or any other non-zero value â Generally indicates unsuccessful termination.
+ 2
D_Stark I have got these results in the internet also...
But is there any difference which can be seen in the output screen....