Internals of Java class loading

Source: Internet
Author: User

This article starts from the basics, such as the difference between code and data, and how they are related to form an instance or object. then it looks into the mechanism of Loading Code into the JVM with the help of class loaders, and the main type of class loaders available in Java. the article then looks into the internals of class loaders, where we cover using the basic algorithm (or probing ), followed by class loaders before it loads a class. the next section of the article uses code examples to demonstrate the necessity for developers to extend and develop their own class loaders. this is followed by explanation on writing your own class loaders and how to use them to make a generic task-execution engine that can be used to load the code supplied by any remote client, define it in the JVM, and instantiate and then execute it. the article concludes with references to J2EE-specific components where custom class loading schemas becomes the norm.

 

Click the link to read: http://www.onjava.com/pub/a/onjava/2005/01/26/classloading.html? Page = 1

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.