Tuesday 12 March 2013

java.lang InstantiationException


java.lang
InstantiationException

Declaration
public class InstantiationException extends Exception
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.InstantiationException
Description
Thrown when an application tries to create an instance of a class using the newInstance method in class
Class, but the specified class object cannot be instantiated because it is an interface or is an abstract class.



Constructors
InstantiationException()
InstantiationException(String s)



Methods inherited from class Object
equals(Object), getClass(), hashCode(), notify(), notifyAll(), wait(), wait(), wait()
Methods inherited from class Throwable
getMessage(), printStackTrace(), toString()



Constructors
InstantiationException()
Declaration:
public InstantiationException()



Description:
Constructs an InstantiationException with no detail message.
InstantiationException(String)
Declaration:
public InstantiationException(java.lang.String s)
Description:
Constructs an InstantiationException with the specified detail message.
Parameters:
s - the detail message.










No comments:

Post a Comment