05 2023 档案

摘要:HashMap中,null可以作为键也可以做为值。而在ConcurrentHashMap中,Key和Value都不允许为null。 ConcurrentMap(如ConcurrentHashMap、ConcurrentSkipListMap)不允许使用null值的主要原因是,在非并发的Map中(如H 阅读全文
posted @ 2023-05-30 11:10 努力前行, 阅读(617) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示