GetGenericInterfaces.java Source code

Java tutorial

Introduction

Here is the source code for GetGenericInterfaces.java

Source

import java.lang.reflect.Type;

import javax.xml.transform.sax.SAXSource;

public class GetGenericInterfaces {

    public static void main(String[] args) {
        try {
            Type[] ts = SAXSource.class.getGenericInterfaces();
            for (int i = 0; i < ts.length; i++) {
                System.out.println(ts[i]);
            }
        } catch (SecurityException e) {
            e.printStackTrace();
        }
    }
}