Explain the following jumping statement: Exit ()
Advertisements
प्रश्न
Explain the following jumping statement:
Exit ()
स्पष्ट करा
Advertisements
उत्तर
In Java, the System.exit() method is used to terminate the execution of a program immediately. It stops the Java Virtual Machine (JVM) and ends the program, regardless of where it is called.
The statement System.exit(0); indicates normal termination of the program, while a non-zero status value generally indicates abnormal termination.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
