Question: A: Write an Exception class called TemperatureTooLow.java B: Write a class called Fridge.java, which has the following method: public boolean checkTemp(int temp){ } If this

A: Write an Exception class called TemperatureTooLow.java B: Write a class called Fridge.java, which has the following method: public boolean checkTemp(int temp){ } If this method is called with temp < 10, it throws TemperatureTooLow Exception otherwise returns true. C: Write a TempTest.java class that does the following: 1- Creates an instance of the Fridge class 2- Calls the checkTemp method and catches the TemperatureTooLow Exception. It calls checkTemp method once with the temp > 10 and once with the temp < 10 and prints the results. needed coding java for all three parts

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 Databases Questions!