The uniqueness feature also ensures that classes Latvia Phone Number List loaded by the primary classloader are not loaded by the secondary classloader. In this case, when the base classloader cannot find the class, the current instance will try to do it itself.Delegation mode java classloader runs on a set of operations provided by the delegation model. Thus, when a query is generated to find a class or resource, the instance of classloader will pass the search for Latvia Phone Number List the class or resource to the primary classloader.
The set of operations on which classloader works is as follows:the java virtual machine checks whether the class is loaded or not as soon as it encounters the class.When a class is loaded, the jvm continues to run the class, but in a scenario where the class is not Latvia Phone Number List loaded, then the jvm asks the java classloader subsystem to load that particular class. The classloader subsystem then provides the ability to manage the application classloader.The application classloader then passes the extension classloader request, which passes the bootstrap classloader request.Bootstrap classloader now looks for the bootstrap classpath to check if the class exists or not. If the class is available.
Then it is loaded, otherwise the request is passed back Latvia Phone Number List to the extension classloader.Extension classloader checks the class in the extension classpath. If the class is available, it is loaded, otherwise the request is passed back to the application classloader.Finally, application classloader looks for a class in the application's class path. If the class is available, then it is loaded, otherwise you will see the classnotfoundexception exception. See Latvia Phone Number List the image below.Principle of classes loaded in extension classloader.