《java核心技术 卷1 基础知识 原书第8版》 12.8.1 P543页 这句话我有些不能理解,为什么接口泛型填入具体的类就成了它的父类了? 如果类型擦除就是Comparable接口啊,怎么会成为String的父类了呢?谁能解释一下呢?
欢迎选择我的课程,让我们一起见证您的进步~~
public final class String implements Serializable, Comparable<String>, CharSequence{ //.... }
String implements compareTo of Comparable interface; Does an interface count as the parent class of the interface implementation class?
String implements compareTo of Comparable interface;
Does an interface count as the parent class of the interface implementation class?