Restarting a thread in java

No, we can’t restart a Thread again. If we try to restart a thread then we will get a runtime exception “IllegalThreadStateException”.

Output:

Help others by sharing the content!

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.