March 2002
Intermediate to advanced
480 pages
18h 40m
English
IllegalArgumentException
This exception signals that a method has been passed an argument whose
value does not meet certain conditions. This exception is often thrown
to signal that a null reference has been passed
to a method that expects a non-null argument.
This class is the same as its J2SE equivalent, apart from its inability to be
serialized.
public class IllegalArgumentException extends RuntimeException {
// Public Constructors
public IllegalArgumentException();
public IllegalArgumentException( String s);
}
IllegalThreadStateException, NumberFormatException
Read now
Unlock full access