Tuesday, May 06, 2008
Java Classloaders
Classloaders are responsible for finding and loading a class.
Class itself is a java object.
Following statements are true,
Custom class loaders
A custom Class Loader can be created by extending java.lang.ClassLoader.
Two things are important in creating a custom classloader.
Classloaders are responsible for finding and loading a class.
Class itself is a java object.
Following statements are true,
- All classloaders except bootstrap classloaders have a parent classloader
- All class loaders are of type java.lang.ClassLoader
Custom class loaders
A custom Class Loader can be created by extending java.lang.ClassLoader.
Two things are important in creating a custom classloader.
- Setting parent classloader
- implementing findClass() method
Labels: java classloader