Class cls = java.lang.String.class; Class[] intfs = cls.getInterfaces(); // [java.lang.Comparable, java.lang.CharSequence, java.io.Serializable] // The interfaces for a primitive type is an empty array cls = int.class; intfs = cls.getInterfaces(); // []