I’d like to know the difference between the following in Java

System.exit(0);
System.exit(-1);
System.exit(1);

When do I have to use the above code appropriately?

12 Answers
12

Leave a Reply

Your email address will not be published. Required fields are marked *