ExceptionS Consider the following Java code: int lowerLimit, result, divisor; ..
ID: 3650980 • Letter: E
Question
ExceptionSConsider the following Java code:
int lowerLimit, result, divisor;
...
try
{
result = lowerLimit / divisor;
if (lowerLimit < 100)
throw new Exception("Lower limit violation.");
}
catch (ArithmeticException e)
{
result = 110;
}
catch (Exception e)
{
result = 100;
}
What is the value of result if the value of lowerLimit is 50 and the value of divisor is 10?
What is the value of result if the value of lowerLimit is 50 and the value of divisor is 0?
What is the value of result if the value of lowerLimit is 150 and the value of divisor is 10?
What is the value of result if the value of lowerLimit is 150 and the value of divisior is 0?