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 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.