Java Generics : What is PECS?

Posted by peakit on Stack Overflow See other posts from Stack Overflow or by peakit
Published on 2010-04-27T17:16:40Z Indexed on 2010/04/27 17:33 UTC
Read the original article Hit count: 363

Filed under:
|
|
|

Hi,

I came across PECS (short for Producer extends and Consumer super) while reading on Generics.

Can someone explain me how to use PECS to resolve confusion between extends and super?

Thanks in advance !

© Stack Overflow or respective owner

Related posts about java

Related posts about generics