The Java Classloader is a part of the Java Runtime Environment that dynamically loads Java classes into the Java Virtual Machine. classes are loaded on demand in java run time environment. There is concept called delegation which is used in java class loading. Compiled java classes (.class file) are packaged in JAR files in the Java language. A class with a given name can only be loaded once by a given classloader. Each Java class must be loaded by a class loader. Furthermore, Java programs may make use of external libraries (that is, libraries written and provided by someone other than the author of the program) or they may be composed, at least in part, of a number of libraries. There are three class loaders which are responsible for Classloadng inside JVM - 1) Bootstrap class loader: The bootstrap class loader loads the core Java libraries located in the /jre/lib directory. It loads the core classes which is available in rt.jar file also called runtime jar. It is...
Computer science engineering's subject topics notes, Programming Notes and personal finance stuff