AAI
Home
Explore
Questions
Question 1
Question 2
Question 3
Question 4
Question 5
Question 6
10:00
Consider the following generic method:
static <T extends Number> void print(List<T> list){}
Which of the following is an incorrect invocation of the above method?
print(List.<Integer>of(20));
print(List.of(20));
print(List.<Object>of(20));
print(List.<Number>of(20));
Prev
1 / 6
Next