david99world david99world - 2 years ago 76
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?

Answer Source

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
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download