Forum Stats

  • 3,750,230 Users
  • 2,250,136 Discussions
  • 7,866,842 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