Java Interview Questions
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.