Is there a special reason in Java for using always “extends” rather than “implements” for defining bounds of type parameters?

For example:

public interface C {}
public class A<B implements C>{} 

is prohibited, but

public class A<B extends C>{} 

is correct. What is the reason for that?

9 Answers
9

Leave a Reply

Your email address will not be published. Required fields are marked *