Java LinkedHashMap Internals

preview_player
Показать описание
In this video I have explained the Java LinkedHashMap internals, which is one of the favourite topic of interviewers.

Рекомендации по теме
Комментарии
Автор

this video is really amazing, , , please continnue to post such content..
2 doubts i am having, can u please guide for them ? :-
a. the structure of BEFORE and AFTER will again be itself a NODE only right ?.. i mean to say, currently Entry class extends Node, and into this class, we are having before and after of type Entry only, thus, these 2 pointer variables to previous and upcoming node also has the other 4 elements of a hashmap.entry ( Key, value, hash of key and Pointer to next) ??... only thing is here when java stores 'before' or "after".. it might had internally used... BEFORE.next or after.NEXT to store the previous and upcoming insertion order... right ??
b. what is the data-type for HEAD and TAIL nodes, along with their class structure ?

DurgaShiva