Java Fundamentals Supplements (iii)

Source: Internet
Author: User

1. Class loading

Bootstrap ClassLoader-Boot (also known as primitive) class loader, which is responsible for loading Java's core classes. Extension ClassLoader-the extension classloader, which is responsible for loading the class pack of the jar in the JRE's extended directory (Java_home/jre/lib/ext or specified by the Java.ext.dirs system properties). System ClassLoader-Systems (also known as applications) ClassLoader, which is responsible for loading-classpath or Java.class.path System Properties from command Java when the JVM is started

Or classpath* the Jar class package and classpath as specified by the System properties.

2. Sequence of constructs involving inheritance

1. Execute the static code block of the parent class

2, execute the subclass of static code block

3. Executing the construction code block of the parent class

4. Execute the constructor of the parent class

5. Construct code block for sub-class execution

6. Execute the Subclass constructor

Java Fundamentals Supplements (iii)

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.