简体   繁体   中英

Java Classloader default classloader

请告诉我默认使用哪个JDK类将应用程序类加载到jvm中。因为它的抽象class.so不能是Classloader类,所以JDK类用于加载应用程序类?

From experimentation on Oracle OpenJDK 8, this is sun.misc.Lanucher$AppClassLoader which subclasses the concrete (non-abstract) URLClassLoader .

The links given are to the JDK6 source as per the tags in the original question. The Java 8 AppClassLoader is available here .

When you read the theory then usually the first classloader is called a bootstrap class loader. The instance will differ based on implementation (HotSpot, JRockit, IBM and based on version). There is more information on this at the Java API Specification .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM