1.

What Are The Types Of Class Loaders In Java?

Answer»

As per my knowledge there are basically 3 types of class loader like bootstarp CLASSLOADER,extension class loader and system class loader.

  • Bootstrap Class Loader
  • Bootstrap class loader loads java’s core classes like java.lang, java.util etc. These are classes that are part of java runtime environment. Bootstrap class loader is native IMPLEMENTATION and so they may differ across different JVMs.
  •  Extensions Class Loader
  • JAVA_HOME/jre/lib/ext contains JAR packages that are extensions of STANDARD core java classes. Extensions class loader loads classes from this ext folder. Using the system environment propery java.ext.dirs you can add ‘ext’ folders and jar files to be loaded using extensions class loader
  • System Class Loader
  • Java classes that are AVAILABLE in the java classpath are loaded using System class loader

As per my knowledge there are basically 3 types of class loader like bootstarp classloader,extension class loader and system class loader.



Discussion

No Comment Found