Question: public class MyExceptionalClass public static void main(String args[]) { try ! throw new ExceptionB(); } catch (Exception e) ! // deal with exception Exception }
public class MyExceptionalClass public static void main(String args[]) { try ! throw new ExceptionB(); } catch (Exception e) ! // deal with exception Exception } catch (Exception e) { // deal with exception ExceptionA } catch (Exception e) { // deal with exception ExceptionB > 1 And given the following statements: a. The class above will not compile because it is missing the finally clause. b. The class above will compile and the code in the three catches will be executed. c The class above will compile and only the code in the first catch will be executed. d. None of the above. Please, select the correct answer from the following options: ba d @b
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
