Java class loading process

Source: Internet
Author: User

Java class loading process
Basic Process: The array class itself is not created through the class loader and is directly created by the Java Virtual Machine. The element types of the array class are loaded by the class loader. Element type of the array class: The type after all dimensions are removed from the array. File Format verification: Metadata verification: bytecode description Semantic Analysis: bytecode Verification: the validity, correctness, and method body analysis of the program are determined through semantic flow and control flow analysis. Symbol reference verification: When a virtual machine converts a symbol reference to a direct reference, the parsing phase verifies the information other than the class itself: allocate memory for class variables in the method area and set the class variable initial value. Resolution: The Virtual Machine replaces the symbolic reference in the constant pool with the CONSTANT_Class_info, CONSTANT_Fieldref_info, CONSTANT_Methodref_info .. initialization: starts to execute the Java program code in the class definition. <Cinit> () method of the execution class constructor, <cinit> ():

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.