A particular instance method defined as,
public void boozy(int level) throws
DrunkException
{ ...}
DrunkException is related to Exception as shown in the
diagram.
Which catch will properly catch a thrown
DrunkException?
A) catch(RuntimeException re){...}
B) catch(ArrayIndexOutOfBoundsException ae){...}
C) catch(Exception error){...}
D) All of the catches will properly catch DrunkenException
E) None of the catches will work.
java.lang.Exception DrunkException
A particular instance method defined as, public void boozy(int level) throws DrunkException { ...} DrunkException is rel
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
A particular instance method defined as, public void boozy(int level) throws DrunkException { ...} DrunkException is rel
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!