Java. lang Package Overview (6)

Source: Internet
Author: User
Java. Lang. exceptionininitializererror
Initialization program error. Thrown when an exception occurs during the execution of a class static initialization program. Static initialization programs are static statement segments directly included in the class.
Java. Lang. illegalaccesserror
Illegal access error. This exception is thrown when an application attempts to access, modify the field of a class, or call its method, but violates the visibility Declaration of the domain or method.
Java. Lang. incompatibleclasschangeerror
Incompatible class change error. This exception is thrown when the class definition on which the method being executed depends is incompatible. This error is easily caused when the Declaration definition of some classes in the application is modified without re-compiling the entire application.
Java. Lang. instantiationerror
Instantiation error. This exception is thrown when an application attempts to construct an abstract class or interface using the new operator of Java.
Java. Lang. internalerror
Internal error. Indicates that an internal error has occurred to the Java VM.
Java. Lang. linkageerror
Link error. This error and all its subclasses indicate that a class depends on other classes. After the class is compiled, the dependent class changes its class definition and does not recompile all the classes, in this case, an error occurs.
Java. Lang. noclassdeffounderror
Class Definition error not found. This error is thrown when the Java Virtual Machine or classloader tries to instantiate a class but cannot find the definition of the class.
Java. Lang. nosuchfielderror
Domain does not exist. This error is thrown when an application attempts to access or modify a certain domain without the definition of this domain.
Java. Lang. nosuchmethoderror
The method does not exist. This error is thrown when an application attempts to call a certain method without the definition of this method.
Java. Lang. outofmemoryerror
Memory insufficiency error. This error is thrown when the available memory is insufficient for the Java Virtual Machine to allocate to an object.
Java. Lang. stackoverflowerror
Stack overflow error. This error is thrown when the hierarchy of recursive calls of an application is too deep, resulting in stack overflow.
Java. Lang. threaddeath
The thread ends. This error is thrown when the stop method of the thread class is called to indicate the end of the thread.
Java. Lang. unknownerror
Unknown error. Used to indicate that the Java Virtual Machine has encountered an unknown serious error.
Java. Lang. unsatisfiedlinkerror
A link error is returned. Thrown when the Java Virtual Machine does not find the native language definition of a class declared as the native method.
Java. Lang. unsupportedclassversionerror
Unsupported class version error. This error is thrown when the Java Virtual Machine attempts to read a class file but finds that the main and secondary versions of the file are not supported by the current Java virtual machine.
Java. Lang. verifyerror
Verification error. This error is thrown when the validators detect internal incompatibility or security issues in a class file.
Java. Lang. virtualmachineerror
Virtual Machine error. Indicates that the virtual machine is damaged or the resources required to continue the operation are insufficient.

6. annotation symbol types
Java. Lang. deprecated
Deprecated. It is used to indicate program elements that are not encouraged to be used for reasons such as safety or a better alternative. When a program element declared as deprecated is used or overwritten in an un-discarded code, the compiler will issue a warning.
Java. Lang. Override
Overwrite. Indicates the situation where a method of a class is declared to require that the same method of its parent class be overwritten. If a method is declared to overwrite the type without actually overwriting the same method of its parent class, the compiler must generate an error message.
Java. Lang. suppresswarnings
Eliminate warnings. Used to indicate removing certain naming warnings from annotated program elements. Most of the annotations are used on deeply nested elements.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.