N
N
Nikita2018-03-05 11:40:12
Java
Nikita, 2018-03-05 11:40:12

What does the question mark mean in a container?

? extends Pet - what does this term mean?

public static Map<Person, List<? extends Pet>> petPeople = new HashMap<Person, List<? extends Pet>>();

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
al_gon, 2018-03-05
@NeToster

Wildcards

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question