Help in Java: A : Write an Exception class called TemperatureTooLow.java B: Write a class called Fri

Help in Java:

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 , it will throw a TemperatureTooLow Exception otherwise it returns true.

C: Write a TempTest.java class that creates an instance of the Fridge class, calls the checkTemp method and catches the TemperatureTooLow Exception. It will call checkTemp method once with a temperature > 10 and once with a temperature

 

Looking for a Similar Assignment? Hire our Top Uk Tutors while you enjoy your free time! All papers are written from scratch and are 100% Original. Try us today! Active Discount Code FREE15