Both cause a program to stop executing. It\'s clear that there must be some differences in how this happens, though. What are they?
In a multithreaded application, there are more than one thread executing . Thread.currentThread().interrupt()
only interrupts your current executing thread, but the remaining thread will be running, even if your main thread is interrupted..
Whereas, System.exit(0)
results your system to be ended.. And all the threads are killed..