Forum Stats

  • 3,768,879 Users
  • 2,252,868 Discussions
  • 7,874,778 Comments

Discussions

Question about super and extends

Hi there,

Why does Java stream looks like this:

stream.map(Function<? super T,? extends R> mapper)

Why does it use the super and extends keywords?

I mean, why is it not defined like this?

stream.map(Function<T, R> mapper)

Regards,

Henk