I was referring to this article.
Is it correct to say following ?
List names = new ArrayList<>();
a) Here List
is generic. But a raw type of generic List <E>
.
Since List
interface is generic interface, having type parameters.
public interface List<E> extends SequencedCollection<E>
b)
public interface MyInterface
If we had above, and use
MyInterface myInterface;
then MyInterface
is not a raw type and not a generic, because MyInterface
is not having type parameters and is not a generic?