java.lang.System.*

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.

Last updated

Was this helpful?