All About Class ArithmeticException in Java



ArithmeticException is thrown to indicate that an exceptional arithmetic condition has occurred.
Example divide by zero.
The class structure is as follows:


public class java.lang.ArithmeticException extends java.lang.RuntimeException{
//constructor
public ArithmeticException();
//constructs an empty ArithmeticException object that is an object with no message specified.
public ArithmeticException(String message);
//constructs an ArithmeticException object with the message specified.

}
 
All About Class ArithmeticException in Java All About Class ArithmeticException in Java Reviewed by Animesh Chatterjee on September 17, 2018 Rating: 5

No comments:

Powered by Blogger.