Wildcard (Java): Difference between revisions

Content deleted Content added
Line 40:
<code>Generic<? '''super''' SubtypeOfUpperBound> referenceConstrainedFromBelow;</code>
 
can hold instantiations of <code>Generic</code> with typesany type that areis both subtypesa subtype of <code>UpperBound</code> and supertypesa supertype of <code>SubtypeOfUpperBound</code>. The type bounds are trivial examples that conform.
 
== Object Creation with Wildcard ==