In a few simple sentences, what is a Java ClassLoader, when is it used and why?
OK, I read a wiki article. ClassLoader loads classes. OK. So if I include jar files a
ClassLoader
in Java is a class which is used to load class files in Java. Java code is compiled into class file by javac
compiler and JVM executes Java program, by executing byte codes written in class file.
ClassLoader is responsible for loading class files from file system, network or any other source. There are three default class loader used in Java, Bootstrap , Extension and System or Application class loader.
## ClassLoader interaction with JVM
More @ : how-classloader-works-in-java.html