Question: Catch Exception The method divideValues() will throw an IllegalArgumentException if either parameter is 5. The method below takes two integer values as parameters and calls
Catch Exception
The method divideValues() will throw an IllegalArgumentException if either parameter is 5. The method below takes two integer values as parameters and calls divideValues() in a try block. Complete the missing part of the catch clause.
public int callDivide(int num, int denom) { int value = 0; try { value = divideValues(num, denom); } { value = 0; } return value; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
