R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which exception is thrown when dividing by zero using integers?

  • (A) NullPointerException
  • (B) ArithmeticException
  • (C) IllegalArgumentException
  • (D) NumberFormatException
  • Correct Answer - Option(B)
  • Views: 2
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
Integer division by zero throws an `ArithmeticException`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.