And look back on the 19th day of Java

Source: Internet
Author: User

Class loading mechanism

There are three kinds of loading mechanisms for the class loading mechanism of the JVM.

  • Overall responsibility: the so-called overall responsibility means that when a classloader is responsible for loading a class , the other class that it relies on and references is loaded by the ClassLoader, unless you explicitly use another classloader to load
  • Parent class Delegate: The so-called parent class delegate is to let the parent ClassLoader attempt to load the class, and only load it from its own classpath if the parent ClassLoader fails to load
  • Caching mechanism: The caching mechanism ensures that all loaded classes are cached, and when a class is used in the program , the ClassLoader first looks for the class from the cache . Only when the class is not present in the cache does the system re-read the corresponding binary data for that type and convert it to a class object and into the cache

The axe relationship in the ClassLoader is not a parent-child relationship in the inheritance, it refers to the relationship of the class loader instance

And look back on the 19th day of Java

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.