stop all code from excecuting without stopping the program java code example Example: java how to stop code System.exit(0);