单选题:Given code below:
Given code below:
```Java
List l1 = new ArrayList<>();
ArrayList l2 = new ArrayList<>();
System.out.println(l1.getClass() == l2.getClass());
```
The result of compilation and running in Java 8 is: @[A](2)
A. It compiles and prints out true
B. It compiles and prints out false
C. It does not compile
D. It compiles and exception raises at run-time
A.It compiles and prints out true
B.It compiles and prints out false
C.It does not compile
D.It compiles and exception raises at run-time
答案:A
```Java
List
ArrayList
System.out.println(l1.getClass() == l2.getClass());
```
The result of compilation and running in Java 8 is: @[A](2)
A. It compiles and prints out true
B. It compiles and prints out false
C. It does not compile
D. It compiles and exception raises at run-time
A.It compiles and prints out true
B.It compiles and prints out false
C.It does not compile
D.It compiles and exception raises at run-time
答案:A