A particular instance method defined as, public void boozy(int level) throws DrunkException { ...} DrunkException is rel

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
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

Post by answerhappygod »

A particular instance method defined as,
public void boozy(int level) throws
DrunkException
{ ...}
DrunkException is related to Exception as shown in the
diagram.
A Particular Instance Method Defined As Public Void Boozy Int Level Throws Drunkexception Drunkexception Is Rel 1
A Particular Instance Method Defined As Public Void Boozy Int Level Throws Drunkexception Drunkexception Is Rel 1 (2.81 KiB) Viewed 72 times
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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply