🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Java Generics: all 10 questions

Quiz: Java Generics · Question 8 of 10

What does PECS stand for?

What does PECS stand for?

  1. A.Public Extends, Class Static
  2. B.Producer Extends, Consumer Super
  3. C.Parameter Erasure Checks Safety
  4. D.Primitive Extends, Collection Super
Answer & explanation

Correct answer: Producer Extends, Consumer Super

Use ? extends when the structure gives you items, ? super when it takes your items.

Can you get the rest right without peeking?

Take the timed Quiz: Java Generics quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →