reflection
-
java.lang.reflect.Array Example
In this example we shall explain how to use java.lang.reflect.Array. The java.lang.reflect.Array class provides static methods to dynamically create and…
Read More » -
Java Reflection Example
Java Reflection API provides the ability to inspect and modify the runtime behavior of applications. Using reflection we can inspect…
Read More » -
Get package name
This is an example of how to get the package name of a class. Getting the package name of a class…
Read More » -
Get super class of an object
With this example we shall show you how to get the super class of an object. To get the super…
Read More » -
Get class from an object
In this example we shall show you how to get the class of an Object. To get the class that represents…
Read More » -
Get methods return type
This is an example of how to get the return type of a classe’s methods. To get the return type of…
Read More » -
Get Modifiers from an Object
In this example we shall show you how to get the modifiers of a class. To get the modifiers of a…
Read More » -
Invoke Method with reflection
With this example we are going to demonstrate how to invoke a method using reflection. In short, to invoke a…
Read More » -
Get Methods from an Object
This is an example of how to get methods of an Object. Getting the methods of an Object implies that…
Read More » -
Get Fields from an Object
In this example we shall show you how to get the fields of a class represented by an object. To…
Read More »
- 1
- 2