filmov
tv
How HashMap works internally || Popular java interview question on collection (HashMap)

Показать описание
In this tutorial, we are going to learn how hashmap works internally.This is a very popular java interview question from the collection framework and been asked so many times to check candidates understanding on Map collection.
I am going to cover three things in this series of tutorials which will cover a hashmap internal implementation.
2)Once we will have an overall idea we are going to debug
everything that we learned in this tutorial
In case of a hash collision, then the key with the same hashcode is going to be stored in the same index as each bucket is a node or a linked list.
Inside each bucket, four things are going to be stored as a form of a linked list.They are hashcode, key, value and the next (which hold the address of the next node with the same hashcode).
So lets understand everything diagrammatically because this is one of the very popular hashmap interview questions.So please put this question on your to-do list and better be prepared for it.
“How hashmap works internally in java with example"
subscribe to my channel by clicking on the link below.
Stay tuned and like my Facebook page for more.
Music :
-----------
credits : -
1)
Creative Commons — Attribution 3.0 Unported— CC BY 3.0
(intro)
2)
NCM Epic Music Ender Guney
-----
intro template :
I am going to cover three things in this series of tutorials which will cover a hashmap internal implementation.
2)Once we will have an overall idea we are going to debug
everything that we learned in this tutorial
In case of a hash collision, then the key with the same hashcode is going to be stored in the same index as each bucket is a node or a linked list.
Inside each bucket, four things are going to be stored as a form of a linked list.They are hashcode, key, value and the next (which hold the address of the next node with the same hashcode).
So lets understand everything diagrammatically because this is one of the very popular hashmap interview questions.So please put this question on your to-do list and better be prepared for it.
“How hashmap works internally in java with example"
subscribe to my channel by clicking on the link below.
Stay tuned and like my Facebook page for more.
Music :
-----------
credits : -
1)
Creative Commons — Attribution 3.0 Unported— CC BY 3.0
(intro)
2)
NCM Epic Music Ender Guney
-----
intro template :
Комментарии