catch (NotANumberException) {
System.out.println("Caught a NotANumberException");
}
catch a NotAPositiveNumberException? Now suppose you have the following catch clause and throw a NotAPositiveNumberException. What happens?
catch (NotANumberException) {
System.out.println("Caught a NotANumberException");
}
catch (NotAPositiveNumberException) {
System.out.println("Caught a NotAPositiveNumberException");
}