Internals of Java Class Loading

A.class is not A.class, when each is loaded by a different class loader. That's only the beginning of the trickiness unveiled by Binildas Christudas in his article Internals of Java Class Loading, in which he shows how multiple class loaders relate to one another, the consequences (and yet necessity) of loading classes from multiple class loaders, and why you might even want to write your own. He says, "all Java programmers should know how the mechanism works and what can be done with it to suit their needs. This can save time that would otherwise have been spent debugging ClassNotFoundException, ClassCastException, etc."

This is a very good post on Java.net that gives a good overview of the internals of Java class loading.

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

I served as Chief Architect of Sun's Developers Tools and recently took on the challenge of managing the Sun Learning Services global technology architecture and infrastructure as Chief Technologist of Sun Learning Services.

Search

Archives
« July 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  
       
Today