Writing URLClassLoader

Class loading a major concept when it comes to JVM internals. We can load jars from multiple locations from DB and From Remote location and we can also create our own class loader instead of using URLClassLoader. Output:  com.sfos.Message@15db9742 hash code of Object With the help of URLClassLoader I am calling Messager.jar which contains Message class. The URLClassLoader will take an array of jars to load not a specific type.  The problem with this example is that when I call new instance, I only get back something of type Object. Now I know that I should be getting back something

Read more