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?