Please consider the following two files defined in the same package in eclipse.
PData.java
package com.abc.cast.q;
public class PData<F extends SF> {
SF.java
package com.abc.cast.q;
public interface SF{
String getCName();
}
I am going through the code and noticed that the in PDData, F is extending SF, however, after looking SF.java, I came to know that it's an interface. So,in PData.java
shouldn't it be F implements SF
instead of F extends SF
in this case?
The compiler doesn't complains