← Quiz: Java Generics: all 10 questions
Quiz: Java Generics · Question 8 of 10
What does PECS stand for?
What does PECS stand for?
- A.Public Extends, Class Static
- B.Producer Extends, Consumer Super
- C.Parameter Erasure Checks Safety
- 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 →