Why Java NullPointerException error is generated when calling a method that throws InterruptedException?

3 answers 3