Given two integer numbers and we have to divide them. If is there any exception we are handling with exception handling processes.
Example:
Input:
Enter First Number : 10
Enter Second Number : 20
Output:
Result:0
Explanation: There is no error 10 is divisible by 20
Input:
Enter First Number : 100
Enter Second Number : 0
Output:
Error: Divide By ZERO
Expiation: A number is not divisible by 0, so error is occurred
Java program:
Output
need an explanation for this answer? contact us directly to get an explanation for this answer