Java Reflection
Call private method
You can call the private method from outside the class by changing the runtime behaviour of the class. By the help of java.lang.Class class and…
Creating appletviewer
As you know well that appletviewer tool creates a frame and displays the output of applet in the frame.You can also create your frame and…
Creating javap tool
Following methods of java.lang.Class class can be used to display the metadata of a class. Method Description public Field[] getDeclaredFields()throws SecurityException returns an array of…
javap tool
The javap command disassembles a class file. The javap command displays information about the fields,constructors and methods present in a class file. Syntax to use…
NewInstance() method
The newInstance() method of Class class and Constructor class is used to create a new instance of the class. The newInstance() method of Class class…
Reflection API
Java Reflection is a process of examining or modifying the run time behavior of a class at run time. The java.lang.Class class provides many methods…