Here Is my program that produces an InterruptedException
.
timepass.java
public class timePass {
private static void book() {
System.out.print("book");
}
public static void main(String args[]){
Thread.sleep(1);
book();
}
}
I would like to know the reason for the thrown exception.