Coding & Programming > JavaScript Forum
What is the difference between System.out.exit(0) and System.exit(1) ?
(1/1)
chinmay.sahoo:
System.exit(0) terminates the program normally. Whereas System.exit(1) terminates the program because of some error encountered in the program.
Lishmalinyjames:
exit(0) : This causes the program to exit with a successful termination. exit(1) : This causes the program to exit with a system-specific meaning.
Navigation
[0] Message Index
Go to full version