为什么声明的类型与实例化类型不同?

时间:2018-03-28 12:32:10

标签: java dictionary concurrenthashmap

最终地图map =     新的ConcurrentHashMap<>();

为什么要声明Map并实例化ConcurrentHashMap?

0 个答案:

没有答案