Ask a simple question about throw exception, bow bow bow# Java - 爪哇娇娃
r*c
1 楼
I just have a piece of code as follows
public void methodA()
{
methodB(paramA, new Class() throws AException {
Noname class
}
}
According to common jave exception practice, should I also modify methodA to
throws AException?
public void methodA()
{
methodB(paramA, new Class() throws AException {
Noname class
}
}
According to common jave exception practice, should I also modify methodA to
throws AException?