Exception Problem

class Excep{
public static void main(String[]args){
try{
}catch(InterruptedException e){}
}
}
The above program fail to compile but when i change InterruptedException to Exception then it will compile.Why?
[300 byte] By [prasun] at [2007-11-20 11:49:52]
# 1 Re: Exception Problem
Presumably nothing in that throws interrupted exception. However, Exception is a top cathegory of any sort of mayhem, so that would apply to anything. You cannot catch a subclass of exception that the content in the try catch brackets does not throw, however you can always catch an exception instance.
Londbrok at 2007-11-10 2:13:57 >