O'Reilly logo

Inside Java™ 2 Platform Security: Architecture, API Design, and Implementation, Second Edition by Mary Dageforde, Gary Ellison, Li Gong

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

4.3. Class Loader Hierarchies

Java 2 has two orthogonal class loader hierarchies. The class definition hierarchy contains subclasses of java.lang.ClassLoader. Each subclass in this hierarchy builds on the behavior and semantics of its ancestors. This inheritance hierarchy is covered in Section 4.3.1. The second hierarchy is a dynamic one formed at runtime. This is the class loader delegation hierarchy. In the previous code example, class C constructs a new instance of class D. The class loader delegation hierarchy enables class C to reach class D, regardless of whether class D is a system, extension, application, or other category of class. The class loader delegation hierarchy is described in Section 4.3.2.

4.3.1. Class Loader Inheritance ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required