Following is my code, i am getting compile time error "Unreachable catch block for InterruptedException. This exception is never thrown from the try statement body" which is fine
but when i am replacing InterruptedException with Exception then it doesn't gives any error, why so that too when both the exceptions are checked exceptions
public static void good()
{
try
{
eatCarrot();
}
catch(InterruptedException e)
{
}
}
private static void eatCarrot()
{
}