What is the difference between System.exit(0) and System.exit(1) ?

System.exit(0) terminates the program normally. Whereas System.exit(1) terminates the program because of some error encountered in the program.

No comments:

Post a Comment