Loads the class with the specified binary name. The default implementation of this method searches for classes in the following order:
Invoke findLoadedClass(String) to check if the class
has already been loaded.
Invoke the loadClass method
on the parent class loader. If the parent is null the class
loader built-in to the virtual machine is used, instead.
Invoke the findClass(String) method to find the
class.
If the class was found using the above steps, and the
resolve flag is true, this method will then invoke the resolveClass(Class) method on the resulting Class object.
Subclasses of ClassLoader are encouraged to override findClass(String), rather than this method.
Unless overridden, this method synchronizes on the result of
getClassLoadingLock method
during the entire class loading process.
name
| The binary name of the class | |
resolve
| If true then resolve the class |
ClassNotFoundException
| If the class could not be found |
Diagram: ClassLoader