Search code examples
javaclassloaderjava-6

Java Classloader default classloader


please tell me which JDK class by default is used to load application class into jvm.It can't be Classloader class since its abstract class.so which JDK class is used to load application class?


Solution

  • 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.