---
title: "HashMap和ConcurrentHashMap对null的不同处理"
author: "grefr"
date: "2014-04-10T15:45:29Z"
tags: []
categories: ["编程语言"]
slug: "hashmap-concurrenthashmap-null"
draft: false
lastmod: "2015-06-23T11:02:39Z"
id: 2043054
url: "https://grefr.iteye.com/blog/2043054"
---

详见： [http://blog.yemou.net/article/query/info/tytfjhfascvhzxcytp93](http://blog.yemou.net/article/query/info/tytfjhfascvhzxcytp93)

 

HashMap的键值对都可以为null

ConcurrentHashMap的键值对都不可以为null