Question: Please answer using **JAVA** 7. Which of the following is true? A. If a try is present a catch must also be present B. If

Please answer using **JAVA**

Please answer using **JAVA** 7. Which of the following is true? A.

7. Which of the following is true? A. If a try is present a catch must also be present B. If a catchis present a finally must be present C. If a try is present a finally must be present D. All of the above E. None of the above 8. Suppose the following catch block is for the purpose of catching an exception thrown as a result of reading a corrupted file. Fill in the areas marked with ??? so that the result of catching such an exception is the printing of the following: A really bad thing has happened: XXXXXXXXXXXX XXXXXXXXXXXX represents what Java has to say about this particular exception. catch(???) { } 9. Suppose that you want the class Apple to implement the Fruit interface. Show how you would write the signature of the Apple class to accomplish this. 10. Suppose the class Tsunami inherits the Disaster class. Tsunami also implements both the Wave and Physics interfaces. Write the signature of the Tsunami class

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!