public class A {
void doStuf(int number) throws Exception {
}
}
public class B extends A {
void doStuf(int number) throws Throwable {
}
public static void main(String a[]) throws Throwable {
new B().doStuf( 1 );
}
}
Select the best answer:
A - ) Class Code A does not compile
B - ) Class Code B does not compile
C - ) Class Code A and B does not compile
D - ) Class Code A and B will compile
E - ) Class Code A and B will compile, and run properly
Não era bem isso, mas me ajudo. Obrigado!