Question: 8. (25 pts) Pay close attention to the code I have already written. //Write minimal code. You may not need all lines. //A FriedEggException is

8. (25 pts) Pay close attention to the code I have already written. //Write minimal code. You may not need all lines. //A FriedEggException is a kind of Exception. Define a minimal FriedEggException to be used below. class TryCatchl //Write a very short method that will always raise a FriedEggException. public static void main(Stringl args) //Call the method you defined and write code to handle the exception by //printing it (or the stack)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
