All About NoSuchMethodError in Java



NoSuchMethodError is thrown from an application if the application tries to call a static or instance method of another class and that class no longer has a method defined.
The structure of the NoSuchMethodError class is given below:


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

}
 
All About NoSuchMethodError in Java All About NoSuchMethodError in Java Reviewed by Animesh Chatterjee on September 20, 2018 Rating: 5

No comments:

Powered by Blogger.