Storage in hashmap

I did n’t understand one thing in the hashmap , that in every bucket of map , only value is stored or both the (key + value) is stored. please help me, i am very confused.

in hashmaps
corresponding to each key we generate an index using hash functions
and at that index we store value

@asaurabh_26 if we store the key at that index, so where our value will be store?

sorry at that index value will be stored

20 will be stored
sorry for my mistake

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.