Question discussion

Which exception is thrown in Java when an attempt is made to divide an integer by zero?

168Medium DSSSB TGT Computer Science 0 replies 2 views
0
Which exception is thrown in Java when an attempt is made to divide an integer by zero?
  • ANullPointerException
  • BArithmeticException
  • CNumberFormatException
  • DArrayIndexOutOfBoundsException
Correct answer: B

Discussion 0

Nobody has replied yet. Start the discussion!