Content deleted Content added
→Object Creation with Wildcard: rewrite/expand |
→Object Creation with Wildcard: mention raw types |
||
Line 48:
However, <code>new List<Generic<?>>()</code> is allowed, because the wildcard is not a parameter to the instantiated type <code>List</code>. The same holds for <code>new List<List<?>>()</code>.
An array object that is an array of a parameterized type
For both cases, using no parameters is another option. This will generate a warning since it is less type-safe (see [[Raw type]]).
== Example: Lists ==
|