Computer Science, asked by queen3059, 7 months ago

what is the use of System.exit(n) method in java​

Answers

Answered by khushisaboji
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