Listing the Interfaces That an Interface Extends : Interface « Reflection « Java

Listing the Interfaces That an Interface Extends


public class Main {
  public static void main(String[] argv) throws Exception {
    Class cls = java.util.List.class;
    Class[] intfs = cls.getInterfaces(); // java.util.Collection



Related examples in the same category

1.Class Reflection: is it an interfaceClass Reflection: is it an interface
2.Class Reflection: implemented interfaces
3.Determining If a Class Object Represents a Class or Interface
4.The superclass of interfaces is always null
5.Listing the Interfaces That a Class Implements
6.The interfaces for a primitive type is an empty array
7.Get Super Interfaces
8.Returns true if type is implementing Map
9.Search over classpath retrieving classes that implement a certain interface
10.Returns true if a class implements Serializable and false otherwise.