What is ArithmeticException?

July 25th, 2009 by uCertify Leave a reply »

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.

  • Share/Bookmark
Advertisement

Leave a Reply

uCertify.com | Our Company | Articles | Contact Us | News and Press Release | uCertify India | Entries (RSS)
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD    Cisco Certification: CCNA, CCENT    A+, Network+, Security+ Project+
Oracle Certification: OCP 11g, OCP 10g, OCA 11g, OCA 10g    CIW foundation    EC-212-32,    CISSP    Photoshop ACE CS4    Adobe Flash ACE, PMP, CAPM
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.