invokedynamic
instruction or a dynamic constant failed to resolve its bootstrap method and arguments.- The
forName
method in classClass
. - The
findSystemClass
method in classClassLoader
. - The
loadClass
method in classClassLoader
.
but no definition for the class with the specified name could be found
CloneNotSupportedException: Thrown to indicate that the clone
method in class Object
has been called to clone an object, but that the object's class does not implement the Cloneable
interface.
EnumConstantNotPresentException: This is thrown when an application tries to access an enum constant by name and the enum type contains no constant with the specified name.
ExceptionInInitializerError: It is thrown to indicate that an exception occurred during the evaluation of a static initializer or the initializer for a static variable.
IllegalAccessError: This is thrown if an application attempts to access or modify a field, or to call a method that it does not have access to.
IllegalAccessException: It is thrown when an application tries to reflectively create an instance (other than an array), set or get a field, or invoke a method, but the currently executing method does not have access to the definition of the specified class, field, method or constructor.
IllegalArgumentException: This is thrown to indicate that a method has been passed an illegal or argument.
IllegalCallerException: This is thrown to indicate that a method has been called by an inappropriate caller.
IllegalMonitorStateException: This is thrown to indicate that a thread has attempted to wait on an object's monitor.
IllegalStateException: This signals that a method has been invoked at an illegal or inappropriate time.
IllegalThreadStateException: This is thrown to indicate that a thread is not in an appropriate state for the requested operation.
IncompatibleClassChangeError: This is thrown when an incompatible class change has occurred to some class definition.
IndexOutOfBoundsException: This is thrown to indicate that an index is out of range.
InstantiationError: This is thrown when an application tries to use the Java new construct to instantiate an abstract class or an interface.
public class IndexOut {public static void main(String[] args) {int arr[] = { 1, 2, 3, 4, 5 };System.out.println(arr[5]);}}
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 5 out of bounds for length 5
No comments:
Post a Comment