Question: Which of the following exception classes must be handled or declared in the method in which they are thrown? (Choose three.) A. Happy B. Dopey

Which of the following exception classes must be handled or declared in the method in which they are thrown? (Choose three.) 

public class Happy extends IOException {} public class Dopey extends Grumpy {}

A. Happy

B. Dopey

C. Sleepy

D. Sneezy

E. Doc

F. Grumpy

public class Happy extends IOException {} public class Dopey extends Grumpy {} public class Sleepy extends IllegalState Exception {} public class Sneezy extends Unsupported OperationException {} public class Doc extends AssertionError {} public class Grumpy extends SQLException {}

Step by Step Solution

3.33 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

In Java exceptions are categorized into two main types checked exceptions and unchecked exceptions C... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Oracle Questions!