When writing an application such as a class browser, you may need to get information about the interfaces that are implemented.
Class objects represent interfaces as well as classes.
If you aren't sure whether a Class object represents an interface or a class, call the isInterface method. Because a Class object represents an interface, you can invoke the Class methods to get information about the interface. To find the public constants of an interface, invoke the getFields method upon the Class object that represents the interface. The section Identifying Class Fields has an example containing getFields . You can use getMethods to get information about an interface's methods.