java reflect

Get interfaces implemented by a class Reflection Java

It is advised to read the notes on Java Reflection API before attempting the programs. Example to get interfaces implemented by a class interface Hello { } interface Test { } interface Sample extends Test, Hello{ } public class Demo implements Hello, Test, Sample { public static void main(String args[]) { Demo d1 = new …

Get interfaces implemented by a class Reflection Java Read More »

Get Super classes of a Class Java Reflection API

It is advised to read the notes on Java Reflection API before attempting the programs. Example to get super classes of a class with Java Reflection API import java.awt.Button; import java.lang.reflect.Modifier; class Test { } class Hello extends Test { } public class Demo extends Hello { public static void main(String [] args) { Demo …

Get Super classes of a Class Java Reflection API Read More »