class MyException extends Exception {}
class SupException extends MyException {}
class SubException extends MyException {}
public class
test {
public static void main(
String[] args )
{
}
public void m() throws MyException , SubException {} }
The above code compiles fine.
Is there any use of declaring a super class exception and a
sub class exception together as m() is doing ?