多选题

Given the following code, which of th...

发布于 2022-03-03 17:30:38

Given the following code, which of the statement(s) is(are) true?

import java.util.HashMap
import java.util.Map

public class Foo {  public static void main(String[] args) {  Map<String, Integer> map = new HashMap<String, Integer>() // 1  map.put("a", 127) // 2  map.put("b", new Integer(127)) // 3  map.put(null, null) // 4  System.out.println(map.get("a") == (map.get("b"))) // 5  }
}




登录后免费查看答案
关注者
0
被浏览
21
知识点
面圈网VIP题库

面圈网VIP题库全新上线,海量真题题库资源。 90大类考试,超10万份考试真题开放下载啦

去下载看看