
whis is the IllegalThreadStateException in java? or define IllegalThreadStateException with exp?

IllegalThreadStateException is thrown to indicate that a thread is not in an appropriate state for the requested operation.
Example
public class Demo extends Thread
{
public static void main(String args[])
{
Demo d1 = new Demo();
d1.start();
d1.start();
}
}