Programming Reference/Librarys
Question & Answer
Q&A is closed
package test; public class Test{ public static void main(String[] args) { System.out.println("Example for exit in java"); System.exit(1); System.out.println("sorry but this is after our exit"); } }
Example for exit in java Java Result: 1