Deep Understanding Java ClassLoader (1): Java class loading principle parsing

Source: Internet
Author: User

Transferred from: http://blog.csdn.net/zhoudaxia/article/details/35824249

1 Basic information

Each developer is certainly not unfamiliar with the java.lang.ClassNotFoundExcetpion exception, which involves class loading in the Java technology architecture. Java's class loading mechanism is the core of the technical system, although not much directly with the majority of developers, but the mechanism behind it has a certain understanding to help troubleshoot the application of class loading failure and other technical issues, to understand the Java Virtual Machine Connection model and Java language Dynamics are very helpful.

2 Java Virtual Machine class loader structure brief

2.1 JVM Three pre-defined type ClassLoader

Let's first look at the three types of class loaders that are predefined by the JVM, and when a JVM starts, Java defaults to using the following three types of class loaders:

Launch (Bootstrap) ClassLoader : The Boot class loader is a class loaded with native code

Deep Understanding Java ClassLoader (1): Java class loading principle parsing

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.