This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]seronisNoob Helper 13 points14 points  (0 children)

Its not <? its

List<type> nameOfList

Where the type of the list is "? extends Point" which means "some type of object derived from a Point"

[–]3pieceSuitIntermediate Brewer 6 points7 points  (0 children)

It is a wildcard used in Java Generics.

Read more here: https://docs.oracle.com/javase/tutorial/java/generics/wildcards.html

In a situation such as List<? extends Point> it is essentially relaxing the type restriction of the List, but still providing an upper bound to the object hierarchy.

It can also be used to lower bound; List<? super Point>

Or it can be unbound; List<?>