table of Contents
- Abnormal (implicit) Ten runtime
- java.lang.NullPointerException
- java.lang.ClassNotFoundException
- java.lang.ArrayIndexOutOfBoundsException
- java.lang.NoSuchMethodError
- java.lang.IndexOutOfBoundsException
- java.lang.NumberFormatException
- java.sql.SQLException
- java.io.IOException
- java.lang.IllegalArgumentException
- java.lang.IllegalAccessException
Abnormal (implicit) Ten runtime
java.lang.NullPointerException
This unusual interpretation is "caught in a null pointer program", simply put, is called uninitialized object or the object does not exist, this error often appear in the picture is created, call the array of these operations, such as images without path when initialization errors, etc., or to create a picture. Null pointer array operation occurs, i.e., the initialization and the initialization of the array elements of the array confused. Initialize the array is allocated space for an array of needs, and the array after initialization, whose elements are not instantiated, is still empty, so it needs to initialize each element (if you want to call it).
java.lang.ClassNotFoundException
Abnormal explained that "the specified class does not exist", this is mainly think about the name and path are correct to class
java.lang.ArrayIndexOutOfBoundsException
This unusual interpretation is "array index out of bounds", the program now has most of the operation of the array, so be sure to carefully check when calling the array, look subscript own calling is not beyond the scope of the array, to general said display calls (i.e., represented by a variable subscript) calls often wrong, there is a situation, the length of the program is defined in the array (i.e., by a constant direct current standard) is not easy with such errors, but implicit is determined by some particular method is not declared in advance, this time, it is best to check out the length of the array, in order to avoid this anomaly.
java.lang.NoSuchMethodError
Error method does not exist. This error is thrown when an application tries to call a method of a class, the class is defined not defined in the method.
java.lang.IndexOutOfBoundsException
Index out of bounds exception. When access to a sequence of index values less than 0 or greater than or equal size sequence, the thrown exception.
java.lang.NumberFormatException
Digital format exception. When trying to convert a String number specified type, and the string does not satisfy the requirements of the format of the digital type, the thrown exception.
java.sql.SQLException
Sql statement is executed abnormalities
java.io.IOException
Abnormal input and output
java.lang.IllegalArgumentException
Method parameter error
java.lang.IllegalAccessException
No access abnormalities