Learning class loading mechanism of 1______ class loader

    Before learning class loading mechanism, we first look at the class loader because the class loader is the class loading mechanism of the premise. The main task of the class loader is: The fully qualified name of a class, the class bytecode files loaded into the JVM, and then converted to the corresponding Java.lang.Class a class object instance. Programmers can also custom class loader, the general will send born abstract class ClassLoader class loader are divided into a custom class loader.

  In our program, the most common class loader clock only three:

  • Bootstrap ClassLoader
  • ExtClassLoader;
  • AppClassLoader; (all classes under the load path classpath, write your own class)

1.Bootstrap ClassLoader:

    Bootstrap ClassLoader: written by C ++ language, nested inside the JVM.

2.ExtClassLoader,AppClassLoader:

    ExtClassLoader, APPClassLoader derived ClassLoader, written in the Java language.

 

Abstract class ClassLoader:

 

      

Guess you like

Origin www.cnblogs.com/xbfchder/p/11410320.html