English

What is the significance of System.exit(0)? - Computer Applications

Advertisements
Advertisements

Question

What is the significance of System.exit(0)?

Answer in Brief

Solution

To end execution at any program instance, use the System.exit(0) function. When System.exit(0) is called, the program ends and all further statements are ignored.

shaalaa.com
  Is there an error in this question or solution?
Chapter 1.08: Conditional Statements in Java - EXERCISES [Page 100]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.08 Conditional Statements in Java
EXERCISES | Q V. 2. | Page 100
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×