Question discussion

Which of the following data structure stores items in ‘key-value’ pairs?

208529Medium 1 reply 4,672 views

Discussion 1

0
CCommunity
Java HashMap is a hash table-based implementation of Java’s Map interface.

It is a collection of key-value pairs. It maps keys to values.

A HashMap cannot contain duplicate keys.

Java HashMap allows null values and the null key.