1. This method is used to end the currently running Java virtual machine
2. System.exit(0); //0 means exit the program normally
3. System.exit(1); //Non-0 means exit the program abnormally
1. This method is used to end the currently running Java virtual machine
2. System.exit(0); //0 means exit the program normally
3. System.exit(1); //Non-0 means exit the program abnormally