Suppose the exception class ExerciseException is defined as follows: public class ExerciseException extends Exception { public ExerciseException() { super("Exercise exception thrown!"); ...



Suppose the exception class ExerciseException is defined as follows:


public class ExerciseException extends Exception


{


public ExerciseException()



{



super("Exercise exception thrown!");



System.out.println("Exception thrown.");



}



public ExerciseException(String message)



{



super(message);



System.out.println("ExerciseException invoked "+



"with an argument.");



}


}


What output would be produced by the following unlikely code?


ExerciseException e = new ExerciseException("Do Be Do");


System.out.println(e.getMessage());



May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here