Three kinds of ClassLoader in Java-java

Source: Internet
Author: User

1, the Virtual machine class loader (called "Bootstrap class loader"), it does not have a parent class loader, it is responsible for loading the virtual machine's built-in class, because it is written in C, C + +, so Java can not get its class file, return is empty, because C, C + + Not *.class file after compilation

2, JDK Extension class loader (Sun.misc.launcher$extclassloader), which is a subclass of the virtual machine ClassLoader, is responsible for loading classes under the Java.x package.

3. The System (Application) class loader (Sun.misc.launcher$appclassloader), which is a subclass of the JDK extension ClassLoader, is responsible for loading the custom classes under Classpath.

In Java, the top-level parent class for all custom loaders is Java.lang.ClassLoader

Three kinds of ClassLoader in Java-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.