Analyze the following code:
double[] array = {1, 2, 3};
ArrayList list = new ArrayList<>(Arrays.asList(array));
System.out.println(list);
◦ The code has a compile error because asList(array) requires that the array elements are objects.
◦ The code is correct and displays [1, 2, 3].
◦ The code has a compile error because an integer such as 1 is automatically converted into an Integer object, but the array element type is Double.
◦ The code is correct and displays [1.0, 2.0, 3.0].