It is advised to read the notes on Java Reflection API before attempting the programs.
Example to get interfaces implemented by a class
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
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 Demo(); Class c = d1.getClass(); Class c1[] = c.getInterfaces(); for(int i = 0; i < c1.length; i++) { System.out.println(c1[i]); } } } |
i want to know more concept about jdbc and do more program in jdbc .so plz guide me.
The best is referring google.