It depends when and where you are using it. If you a creating a generic method then <T> defines the generic type in that method. If you are defining a generic collection then <?>, <
String> is used. I've not touched generics since I took the
SCJP so correct me if I am wrong.
Post a code snippet of what you are trying to do. It may help answer you question a bit better.