When you say
which thread are you trying to put to sleep? I think it's the main thread that would go to sleep. Is that correct?Thread.sleep(1000);
In this question, the InterruptedException WON'T be thrown because the thread launched by a.start() was never on wait(), join() or sleep() when a.interrupt() was called. Do I understand this correctly?
Many thanks.
Schmichael