English is not my nature language but for me i understand that the book states that this code works but it's not i have tested it on netbeans.
Code: Select all
class Parent{
public static void foo()throws Exception{
}
}
public class EnthuwareStaticInheritedPlusExceptions extends Parent {
public static void foo()throws Throwable{
}
public static void main(String[] args) {
}
}
This not works just because is throwing a Throwable and the parent or original method is throwing a exception.public static void foo()throws Throwable{
}
But reverse it works i mean throws Throwable in parent and Exception in the child method.

Perhaps i get it wrong
