📅  最后修改于: 2022-03-11 14:48:30.988000             🧑  作者: Mango
HashMap does not allow duplicate keys however it allows to have duplicate values. HashSet permits to have a single null value. HashMap permits single null key and any number of null values.