Explain Java class loaders? Explain dynamic class loading?The classes are available to the JVM and are referenced by the name. After JVM starts, it introduces the classes into it. All class loaders follow a hierarchical fashion to be identified by JVM. The very first class is the ‘initial class’, in which public static void main(String args[]) method is encapsulated. This class is loaded by JVM itself. All other subsequent classes are loaded by as they appear in the ‘class chaining’. Every class loader creates a name space to uniquely identify them. One class loader, at least, are included in every JVM, called bootstrap class loader or primordial.
|