Question
When ArithmeticException is thrown?
Answer
The ArithmeticException is thrown when integer is divided by zero or taking the remainder of a number by zero. It is never thrown in floating-point operations.
š² Practice Offline on Mobile: Download the free QA Automation & SDET Prep app on Google Play & App Store.