(Choose 1 answer)
Exception
You are writing a set of classes related to cooking and have created your own exception hierarchy derived from java.lang.Exception as follows:
+-- BadTasteException
+-- BitterException
+-- SourException
BadTasteException is defined as an abstract class.
You have a method eatMe that may throw a BitterException or a SourException. Which of the following method declarations will be acceptable to the compiler?
A. public void eatMe(Ingredient[] list) throws BadTasteException
B. public void eatMe(Ingredient[] list) throws BitterException, SourException
C. public void eatMe( Ingredient[] list) may throw BadTasteException
D. public void eatMe(Ingredient[] list)
Exit 34