The interrupt() method exists in the java.lang.Thread class. This method is used to interrupt the current thread. If current thread is blocked by wait(), join() or sleep() methods then its interrupt status will be cleared and it will receive and InterrrupedException. Interrupting a thread that is not alive have no effect.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.