All About Class AbstractMethodError in Java



AbstractMethodError is thrown when an application tries to to call an abstract method.Normally this error is caught by the compiler.This error can only occur at run time if the definition of some class has incompatibly changed since the currently executing method was last compiled.

The structure of AbstractMethodError is defined as below:


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

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

No comments:

Powered by Blogger.