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](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f9025fa2faf_10366f9025f7b60a.jpg)
[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
Get step-by-step solutions from verified subject matter experts
