What is ArithmeticException?

Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.

What is ArithmeticException?

Rating:

ArithmeticException is a runtime exception that is thrown when an exceptional arithmetic condition such as an integer division by zero occurs. ArithmeticException is a subclass of the java.lang.RuntimeException class. When a code detects an integer division by zero, it creates an instance of the ArithmeticException class and passes it to the Java Virtual Machine. This operation is called throwing an ArithmeticException.

Note: Both the arithmetic division and modulus operators may throw an exception of type ArithmeticException. Floating-point division by zero does not cause this exception.


Rating:



Other articles

Click here to Article home

MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD, SCJA, SCBCD, SCMAD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW foundation    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.
 
HACKER SAFE certified sites prevent over 99.9% of hacker crime.