david99world david99world - 4 months ago 7x
Java Question

Java Generics, is <C> equal to <T>?

If I had a Java generic class of...

public class EntityStuff<C> extends AbstractPropertyStuff<C> implements Serializable {


Is this the same as...

public class EntityStuff<T> extends AbstractPropertyStuff<T> implements Serializable {


does the letter hold any significance?


No, there is no significance.

There are conventions (see Java Generics Tutorial):

E - Element (used extensively by the Java Collections Framework)
K - Key
N - Number
T - Type
V - Value
S, U, V etc. - 2nd, 3rd, 4th types