Answers

Question and Answer:

  Home  Core Java

⟩ Explain the reason behind ending a program with a System.exit (0)?

The reason behind ending a program with System.exit (0) involves technicalities. When main method exits the new thread automatically does not end. The appearance of this thread is because of dialog box functionality. System.exit ends all the methods.

 141 views

More Questions for you: