unlike C/C++, The main method does not return an 'exit code' to the operating system. If the main method exits normally, the Java program has the exit code 0, indicating successful completion. To terminate the program with a different exit code, use the System.exit()
No comments:
Post a Comment