Name

NoSuchMethodException

Synopsis

Signals that the specified method does not exist in the specified class.

java.lang.NoSuchMethodException

Figure 10-45. java.lang.NoSuchMethodException

public class NoSuchMethodException extends Exception {
// Public Constructors
     public NoSuchMethodException( );  
     public NoSuchMethodException(String s);  
}

Thrown By

Class.{getConstructor( ), getDeclaredConstructor( ), getDeclaredMethod( ), getMethod( )}

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.