Core Java Question: Download Questions PDF
Explain the reason behind ending a program with a System.exit (0)?
![Core Java Interview Answer Core Java Interview Question](https://globalguideline.com/public/images/interview/8.png)
Answer:
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.
Download Core Java Interview Questions And Answers
PDF
Previous Question | Next Question |
Explain about strings in Java? | Explain about inheritance hierarchies? |