What is the output of the following code?
import java.util.*;
class Test {
public static void main(String[] args) {
ArrayList<Integer> l = new ArrayList<>();
l.add(1);
l.add(2);
Integer[] arr = {1,2};
System.out.println(""+l);
System.out.println(""+arr);
System.out.println(arr[1]+"");
}
}
[1, 2]
[Ljava.lang.Integer;@70dea4e
2