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)
The question was posed to me at a job interview.
My question comes from Wildcards topic in portion Generics of Java
Select the correct answer from above options
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)