Java – use system exit(0)
•
Java
public class WrapperTest {
public class WrapperTest { static { print(10); } static void print(int x) { System.out.println(x); System.exit(0); } }
In the above code, system Exit (0) is used to stop the program What parameters does the method take? Why do we take it as 0 Can anyone explain this concept?
Solution
From Java documentation:
Wikipedia adds other information
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码