-->
当前位置:首页 > 题库

单选题:Given code below:

Luz5年前 (2021-05-10)题库1084
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