Question: [Java] When you create your own exception type, whether it is checked or unchecked depends on what part of Java's Exception class hierarchy you extend.

 [Java] When you create your own exception type, whether it is

[Java] When you create your own exception type, whether it is checked or unchecked depends on what part of Java's Exception class hierarchy you extend. Part A. [Java] Suppose you wanted to create your own custom exception type that you would throw to indicate a violated precondition for a method you were writing. Which category of exception would be more appropriate to choose in this situation? (circle the correct answer below) checked unchecked Part B. [Java] Suppose you wanted to create your own custom exception type that you would throw to indicate that the file format was incorrect for a class you were writing that had the code to read that file. Which category of exception would be more appropriate to choose in this situation? (circle the correct answer below) checked unchecked

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Programming Questions!