Tag Archives: ListampltIntegerampgt

Given the code fragment: List<Integer> list = List.of(11,12,13,12,13); Which statement causes a

Given the code fragment:List<Integer> list = List.of(11,12,13,12,13);Which statement causes a compile time error? A. Integer a = Integer.valueOf(list.get(0)); B. Double e = Double.valueOf(list.get(0)); C. int c =list.get(0); D. Double d = list.get(0); E. Integer b = list.get(0); F. double f = list.get(0); Correct Answer: A