• Post Reply Bookmark Topic Watch Topic
  • New Topic

generics

 
sweety singh
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please tell me the difference between <?> and a type variable <T>,<E>... when are they used...
thanks...
 
Noam Wolf
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
sweety singh
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!