Catch Exception The method divideValues() will throw an IllegalArgumentException if either parameter is 5. The method below
Fantastic news! We've Found the answer you've been seeking!
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 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; }
Related Book For
Building Java Programs A Back To Basics Approach
ISBN: 9780135471944
5th Edition
Authors: Stuart Reges, Marty Stepp
Posted Date: