Is there ever a difference between an unbounded wildcard e.g. <?>
and a bounded wildcard whose bound is Object
, e.g. <? extends Object>
?
I recall reading somewhere that there was a difference in the early drafts of generics, but cannot find that source anymore.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…