Question 8 of 20
What will be output of following code -
import java.util.Arraylist,
import java.util.List;
public class My Class {
public static void main(String[] args) {
List<Integer> 1 = new ArrayList<lnteger>0;
1.add(2):
m(1)
3
static void m(List<? super Double> 1) {
System.out.println(1 get(0));
Answers
Answered by
0
Answer:
The output will be undoubtedly 6! If you ask me for an explanation.. I would ask you to learn about the increment and decrement operators!
Similar questions