Name
InstantiationException
Synopsis
This exception is thrown when the Class
newInstance()
method is used to either create an
instance of a class that represents an array, or cannot be instantiated
because it is an interface or is declared to be abstract.
This class is the same as its J2SE equivalent, apart from its inability to be
serialized.
public class InstantiationException extends Exception { // Public Constructors public InstantiationException(); public InstantiationException( String s); }
Thrown By
Class.newInstance()
Get J2ME in a Nutshell 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.