java.lang
Class InstantiationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.InstantiationException
public class InstantiationException
- extends Exception
Thrown when an attempt is made to use reflection to build a
non-instantiable class (an interface or abstract class).
- See Also:
Class.newInstance()
InstantiationException
public InstantiationException()
- Create an exception without a message.
InstantiationException
public InstantiationException(String s)
- Create an exception with a message.
- Parameters:
s
- the message