Difference Between Class.forName() and ClassLoader.loadClass()


Class.forName() and ClassLoader.loadClass(), both the classes dynamically loading the classes to the classpath. However, there are subtle difference on initializing the classes at the time of loading and from where it is loaded. This tutorials compares both the form of class loading with simple examples. Class.forName() By default the classes are initialized at the time […]

Please support the site
By clicking any of these buttons you help our site to get better