मराठी

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
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 7: Statements and their Scope - EXERCISE [पृष्ठ १६३]

APPEARS IN

धीरज मेहरोत्रा Computer Science [English] Class 12
पाठ 7 Statements and their Scope
EXERCISE | Q 8. (a) | पृष्ठ १६३
Advertisements
Share
Notifications



      Forgot password?
Use app×