标签:单线程 哈希表 io流 void div tab ble 舞台 pointer
public class Demo02Hashtable { public static void main(String[] args) { HashMap<String,String> map = new HashMap<>(); map.put(null,"a"); map.put("b",null); map.put(null,null); System.out.println(map);//{null=null, b=null} Hashtable<String,String> table = new Hashtable<>(); //table.put(null,"a");//NullPointerException //table.put("b",null);//NullPointerException table.put(null,null);//NullPointerException } }
标签:单线程 哈希表 io流 void div tab ble 舞台 pointer
原文地址:https://www.cnblogs.com/wurengen/p/11247345.html