Skip to content


Articles on Java programming language.

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.

Java AWT Border Layout Example

Border Layout of AWT Explained

The Border Layout lays out controls in a specific regions of the Container. In this example, we will create five components and then place them in five different regions of the Border Layout.