编程知识 cdmana.com

Java interview question (15): Java class loader

1. Java Class loader

JDK It comes with three classloaders :bootstrap ClassLoader、ExtClassLoader、AppClassLoader.
BootStrapClassLoader yes ExtClassLoader The parent loader of , Load by default %jAVA_HOME%lib Under the jar Bao He class writing
Pieces of .
ExtClassLoader yes AppClassLoader The parent loader of , Responsible for loading %JAVA_HOME%/lib/ext Under folder jar Bao He class class .
AppClassLqader Is the parent of a custom class loader , Responsible for loading classpath Next class file .
Inherit ClassLoader Implement custom class loader

版权声明
本文为[SmallGrayCode]所创,转载请带上原文链接,感谢
https://cdmana.com/2021/08/20210804232154640g.html

Scroll to Top