Java Reflection - Types Relation

Java Reflection: Finding Instance Type

This example shows how to use various Java Reflection techniques to find the Instance types while the application is running in JVM. This example creates some sample class instances at run-time and then finds its type through Reflection techniques such as class.forName, getClass etc.