移动端

  • 题王微信公众号

    题王微信公众号

    微信搜“题王网”真题密题、最新资讯、考试攻略、轻松拿下考试

多选题

import java.util.*;  public class NameList {  private List names = new ArrayList();  public synchronized void add(String name) { names.add(name); }  public synchronized void printAll() {  for (int i = 0; i System.out.print(names.get(i) +“ “); }  }  public static void main(String[] args) {  final NameList sl = new NameList();  for(int i=0;i

发布日期:2021-05-17

import java.util.*;  public class NameList {  priv...
A

An exception may be thrown at runtime.

B

The code may run with no output, without exiting.

C

The code may rum with output “A B A B C C “, then exit.

D

The code may ruin with output “A A A B C A B C C “, then exit.

E

The code may rum with output “A B C A B C A B C “, then exit.

F

The code may ruin with output “A B C A A B C A B C “, then exit.

标签: "暂无标签"

题王网让考试变得更简单

扫码关注题王,更多免费功能准备上线!