what is the use of System.exit(n) method in java
Answers
Answered by
1
Answer:
exit(0) : Generally used to indicate successful termination. exit(1) or exit(-1) or any other non-zero value – Generally indicates unsuccessful termination. Note : This method does not return any value. The following example shows the usage of java.
Similar questions