Here we show you the way to find out the Superclass name by using the getSuperclass() method. The given example demonstrates the use of getSuperclass() method in more detail.
Finding out the super class name of the class
Here we show you
the way to
find out the Superclass name by using the
getSuperclass() method. The given example demonstrates
the use of getSuperclass() method in more detail.
Create a class "Fsupercls". Populate
it with the Checkbox objects. Now retrieve the
Superclass name by using the getSuperclass() method.
Here is the code of the Example :
Fsupercls.java:
import java.lang.reflect.*;
|
Here is the output of the Example :
C:\roseindia>javac Fsupercls.java C:\roseindia>java Fsupercls class java.awt.Component |