O'Reilly logo
  • Michael ss thinks this is interesting:

In this method, we call the exit method of the System class to close the application.

From

Cover of Java Programming

Note

只有这样才是真正地关闭窗口,退出程序