Wildcards

Q.

What is the output of this program?

  
    import java.util.*;
    class Output {
        public static void addNumbers(List list) {
            for (int i = 1; i <= 10; i++) {
                list.add(i);
            }
        }
        public static void main(String args[]) {
           List ld = Arrays.asList();
           addnumbers(10.4);
           System.out.println("getList(2)");
        }
    }
A. 1
B. 2
C. 3
D. 6

Answer : Option A

Explanation :

None.
Output:
$ javac Output.javac
$ java Output
1