This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes generics Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "generics" Watch "generics" New topic


sweety singh
Ranch Hand

Joined: Dec 15, 2007
Posts: 49
please tell me the difference between <?> and a type variable <T>,<E>... when are they used...
Noam Wolf
Ranch Hand

Joined: Jan 12, 2008
Posts: 35
Hi singh,

I would suggest checking out chapter 7 in Kathy Sierra and Bert Bates "SCJP" book. Your question is way too vague.

Also you might want to try Google first.

because .net guys can also write in java
sweety singh
Ranch Hand

Joined: Dec 15, 2007
Posts: 49
the book says that the question mark works when declaring a reference for a varible its does not work for generics class and method declaration.. i did not understand this...
wood burning stoves
subject: generics
It's not a secret anymore!