Which of these is an correct way making a list that is upper bounded by class Number?
A. List<? extends Number>
B. List
C. List(? extends Number)
D. List(? UpperBounds Number)
Answer:A
Which of these is an correct way making a list that is upper bounded by class Number?
A. List<? extends Number> B. List C. List(? extends Number) D. List(? UpperBounds Number)