Is this MyException checked exception or what?class MyException extends Throwable{}
This method is throwing new MyException3 but the throws statement mention MyException?void myMethod() throws MyException{
throw new MyException3();
Is it valid to mention some Exception with throws statement and then actually throwing some other Exception in the body? I mean can they differ?
Thanks a lot;