Interview Questions

How to Stop a thread?

Since Thread Class' stop method is deprecated, we have to use Thread.interrupt() and catch the "InterruptedException" in Runnable run method for detecting and returning from run.