M
manuel aldana
i tried to do
class BlaThread extends Thread{
public void run throws MyException(){
.........
.......
throw new MyException();
.....
}
is not possible to compile. why does java not allow to override a method
with a different throws statement?
or am i doing something wrong here?
class BlaThread extends Thread{
public void run throws MyException(){
.........
.......
throw new MyException();
.....
}
is not possible to compile. why does java not allow to override a method
with a different throws statement?
or am i doing something wrong here?