I am relatively new to Stackoverflow and Java, but I have little experience with C. I liked the very clean way to exit C programs after crashing with the "exit ()" function.
I found a similar System.exit () function in Java, which is different from the C function, and when should I use "System.exit ()" better than just "returning" to Java, for example, in the void main function?
source
share