Which Of These Is An Correct Way Making A List That Is Upper #1192
Which of these is an correct way making a list that is upper bounded by class Number?
This multiple choice question (MCQ) is related to the book/course gs gs128 Java. It can also be found in gs gs128 Java Generics - Java Wildcards - Quiz No.1.
Which of these is an correct way making a list that is upper bounded by class Number?
List<? extends Number>
List<extends ? Number>
List(? extends Number)
List(? UpperBounds Number)