Output of the following program for Java Generics Code?
Choose the correct option from below list
(1)It prints the following: The list is: [1, 2]
(2)It prints the following: The list is: [2, 1]
(3)It results in a compiler error
(4)It results in a runtime exception
Answer:-(3)It results in a compiler error | |