#10 - How HashMap works internally || Popular java interview question on collection (HashMap)

  Рет қаралды 120,480

Naveen AutomationLabs

Naveen AutomationLabs

3 жыл бұрын

In this video, I have explained How HashMap works internally, what is hashing and HashCode, what is indexing and how is it calculated from Hashcode?
This is a very popular java interview question on collection (HashMap).
References taken from:
Java 8 API Doc
Oracle Java 8 Source Code
Geeks of geeks
Full Java Collection Playlist:
• Latest Java Collection...
~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
kzbin.info%20Au...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
t.me/joinchat/COJqZUPB02r5sB7...
Paid courses (Recorded) videos:
naveenautomationlabs.com/reco...
For Java & Selenium - naveenautomationlabs.com/selen...
For API (Manual + Automation) - naveenautomationlabs.com/manua...

Пікірлер: 232
@soumyajit443
@soumyajit443 2 жыл бұрын
I have read about this from multiple resources.But I had never seen it in real 'how exactly it works'.You have explained so beautifully.Its just amazing. I would say you are "THE DRONACHARYA" (who was was royal preceptor to the Kauravas and Pandavas.) Thank you so much for making this awesome video.Its so clear and precise.Thanks
@naveenautomationlabs
@naveenautomationlabs 2 жыл бұрын
Most welcome:) keep learning 👍😃
@soumyajit443
@soumyajit443 2 жыл бұрын
@@naveenautomationlabs I want to get strong in logic building.I appeared for an interview but did not get selected in first round.They asked to write a program which would take input an Integer array having only zeros and ones and output will be sorted Integer like 000011111.I could not answer it. Actually Naveen,I need a proper plan and guidance to get strong in my programming skills.Please guide me if you provide any personal training I would like to enroll for it as its high time and I want a change in my career.
@rachakatladheer9059
@rachakatladheer9059 2 жыл бұрын
@@soumyajit443 use Sort Class int arr[] = {0,1,0,1,0,1,0,1,1,0,0,1}; Arrays.sort(arr); System.out.println(Arrays.toString(arr)); o/p - [0,0,0,0,0,0,1,1,1,1,1,1]
@anushavenkatesan685
@anushavenkatesan685 2 жыл бұрын
@@soumyajit443 check his website. He s taking live classes
@sureshgarine
@sureshgarine 3 жыл бұрын
I appreciate your research on Hashmap implementation under the hood, I remembered my college day's Hashing concept implementation, now I see in reality in debug mode. Thanks, Naveen. this is called bridging the gap between institution and industry. :)
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
Thanks for your valuable comment. Thanks for your motivation.
@abhiPn9160
@abhiPn9160 8 ай бұрын
Thanks sir....i searched many time for working of hashmap. But Didn't satisfied with explanation all they have. But after ur video now I am cleared about hashmap. Your explanation in simple and better 🙏 thnks sir
@rd3316
@rd3316 2 жыл бұрын
🙌take a bow Naveen . I searched this on internet and no one has explained it in such an easy way like you .
@Ranjan-Singh89
@Ranjan-Singh89 3 жыл бұрын
Thanks, Naveen for creating this whole java collection video series. In this series, you have really explained each and every collection framework topic in an awesome way and In fact, I am following a couple of automation tutors on KZbin but no one has explained these topics in such an easy and understanding way. 😊👍👍
@viveksinghbais4133
@viveksinghbais4133 Жыл бұрын
Thank you, sir, I can't even imagine how much hard work and research are required to create such knowledgeable content. thanks so much
@kumargaurav4362
@kumargaurav4362 2 жыл бұрын
In Java 8, HashMap replaces linked list with a binary tree when the number of elements in a bucket reaches certain threshold. While converting the list to binary tree, hashcode is used as a branching variable. If there are two different hashcodes in the same bucket, one is considered bigger and goes to the right of the tree and other one to the left. But when both the hashcodes are equal, HashMap assumes that the keys are comparable, and compares the key to determine the direction so that some order can be maintained. It is a good practice to make the keys of HashMap comparable. This JDK 8 change applies only to HashMap, LinkedHashMap and ConcurrentHashMap.
@gita3354
@gita3354 3 жыл бұрын
Excellent explanation Naveen . I was so scared to learn the collections concept in java. But you have made it like a cupcake . Thanks much for your time and effort. I don't think even the paid courses will give this much explanation for each nuke and corners.
@swapnakadam1822
@swapnakadam1822 2 жыл бұрын
The best explanation on How hashmap works internally, I have seen so many videos but I get confused instead of understanding but this is PERFECT....Thank you...
@prabhakarreddy9180
@prabhakarreddy9180 3 жыл бұрын
Entire KZbin ur explanation is just awesome
@gopalpandurangan9768
@gopalpandurangan9768 3 жыл бұрын
Excellent demonstration on HashMap. Thanks
@sandeepchoudhary3882
@sandeepchoudhary3882 3 жыл бұрын
Awesome...very detailed explanation. Thank you Naveen !
@sharvilpatil8742
@sharvilpatil8742 Жыл бұрын
This is the best explanation one can ever get on Hashing and Hashmap. Great explanation Naveen!
@mahiradolan4160
@mahiradolan4160 3 жыл бұрын
Very detailed and excellent explanation. Thank you, Naveen!
@Fortheluvoffood
@Fortheluvoffood 3 жыл бұрын
really good explanation... learning from your channel is very much easier than reading stuff on internet and reading books... precise explanation with good examples clears the concept easily rather than getting confused in it... appreciate your efforts and your easiness towards teaching these concepts... you do it so confidently and so easily... thankyou so much...
@Lipunknb
@Lipunknb Жыл бұрын
the best hashmap internal working video on youtube. OP🙌
@rakeshdora6
@rakeshdora6 3 жыл бұрын
Really appreciate your work and awesome explanation i saw several videos for hashmap implementation and work flow. But this is the BEST.
@charismatic2
@charismatic2 3 жыл бұрын
Thank you so much Naveen for detailed and clear explanation.
@sachida23
@sachida23 3 жыл бұрын
Explanation is precise and crisp and well documented thanks for this post.
@b3creativevlogs815
@b3creativevlogs815 3 жыл бұрын
Superb Explanation Naveen now I understood the HashMap how its working...Thank you so much...
@suyogdtalathi924
@suyogdtalathi924 2 жыл бұрын
Thanks !! After searching more for hashmap internal structure this one is the best explanation
@aryacode1705
@aryacode1705 2 жыл бұрын
Thank you so much, sir, I can't even imagine how much hard work and research are required to create such knowledgeable content. thanks so much
@muzammilkhan382
@muzammilkhan382 Жыл бұрын
Thankyou Naveen Sir for your explanation! After banging my head for hours, and reading articles, finally found your video and understood how it works.
@gurunadhmitikela2918
@gurunadhmitikela2918 2 жыл бұрын
Wow.. what a wonderful explanation Naveen. Kudos to you for teaching this complex concept in such a simplified way. Really appreciate the hard work you would have put in to break this one brick by brick. :)
@utpalkanti
@utpalkanti 2 жыл бұрын
Excellent explanation. Many many thanks for this kind of video. Recollecting my old college day topics now...
@syedjami4033
@syedjami4033 2 жыл бұрын
Amazing. Just loved the explanation.
@shobhit9826
@shobhit9826 3 жыл бұрын
Yes this is the most important interview question I have also faced the same multiple times
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
yes it is. please prepare it.
@ambicaponnaluri7743
@ambicaponnaluri7743 Жыл бұрын
All my queries regarding Harshmap were cleared after watching this.Awesome work😊 Keep rocking.. Thankyou much Naveen
@sujith6323
@sujith6323 3 жыл бұрын
Explanation followed by the important notes was very helpful. Really appreciate this Quality content.
@gauravjaykar8126
@gauravjaykar8126 3 жыл бұрын
Appreciate your Work ,You Covered every Possible concept
@ashuiet
@ashuiet 3 жыл бұрын
Earlier I have tried to understand the "Hashing Concept" from several sources but it seems very confusing but the way you have expalain now this concepts has cleared now. So, Here after I can explain the hashing concept to anyone. Thanks !! Naveen
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
Glad that you got the concept. :)
@hasmukhmaniya4214
@hasmukhmaniya4214 3 жыл бұрын
Thanks for the video Naveen and one of the best video to understand HashMap functions.
@jatinsharma3792
@jatinsharma3792 2 жыл бұрын
You always saves me in difficult situation where understanding is not easy. :D Thanks!!
@lockdowndiaries4090
@lockdowndiaries4090 2 жыл бұрын
super. simple and clear explanation. i have searched many videos. nothing compared to urs. great and thank you so much for helping us out
@vinodkumar-ss3mb
@vinodkumar-ss3mb 3 жыл бұрын
What a wonderful explanation sir You made this topic so easy God bless you 🙏
@sreedevimoningi9739
@sreedevimoningi9739 3 жыл бұрын
Thank you so much Naveen for this video, very detailed and excellent explanation you have given. I did really felt amazing.
@priyanshusinha7056
@priyanshusinha7056 2 жыл бұрын
Good Explanation ❤❤ Thank you NAVEEN Sir
@sakshiaggarwal6199
@sakshiaggarwal6199 3 жыл бұрын
Thanks a lot Naveen. This was much needed to understand the internal working. 😇 Especially the debugging how it is calculating the hashcode is ultimate.
@poonamsharma7026
@poonamsharma7026 3 жыл бұрын
Thanks a lot Naveen. You are right, it really gets difficult to understand from documentation, we need practical implementation, and as always you made it easy :).
@parameshwarpr1364
@parameshwarpr1364 3 жыл бұрын
Well explained sir, thank you so much.
@usmanahmad5448
@usmanahmad5448 Жыл бұрын
This is by far the best explanation.
@vemurisirisha8543
@vemurisirisha8543 2 жыл бұрын
Superb explanation sir. Thank you so much for all ur efforts!
@raghugunda2732
@raghugunda2732 2 жыл бұрын
Very good explanation. Thank you so much
@Coolharshit149
@Coolharshit149 2 жыл бұрын
What an amazing explanation. Thanks :)
@sathishrajasekar1155
@sathishrajasekar1155 2 жыл бұрын
Thanks Naveen, Useful video.
@dhareppasasalatti7102
@dhareppasasalatti7102 2 жыл бұрын
The best out of the best Explanation I have even seen on this hashmap.. Thank you sir for the effort.. It's was 💯💯
@msanyasirao5411
@msanyasirao5411 2 жыл бұрын
Thank you.. Explained in an understanding of this typical hash code topic..Really Good
@sumitbabel5415
@sumitbabel5415 3 жыл бұрын
Exceptionally well explained , I would really like to express my gratitude for such a marvelous and clear explanation. To be honest I am able to understand and register it very nicely. Many thanks and God bless dear.
@Anuragidiot1
@Anuragidiot1 3 жыл бұрын
Great Video finally it helped me understand how it works Thank You Naveen
@nithyar767
@nithyar767 Жыл бұрын
You have done a wonderful job Naveen ! Thanks!
@MrYashMundey
@MrYashMundey 3 жыл бұрын
I will never forget this now. Thank you for making it so easy :)
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
My pleasure 😊
@vandanamishra6748
@vandanamishra6748 2 жыл бұрын
Your each video is so well explained .. after going through your videos my base is getting cleared on many topics .. keep making good videos.. god bless you for ur hard work ..🙏🙏
@ruch3719
@ruch3719 Жыл бұрын
Very well and crisp with what is required and the clarity of topic stays longer in mind ..with so neat and clear explanation.Hope you keep posting more content on data structures and common topic which are required longer
@magicallife9299
@magicallife9299 2 жыл бұрын
Best explanation of hash map
@himanshikushwah8341
@himanshikushwah8341 3 жыл бұрын
Best explaination i got so far👍
@amrendrakumar4280
@amrendrakumar4280 2 жыл бұрын
theory with practical ,very well explained
@sogdo
@sogdo 2 жыл бұрын
Thanks for the video Naveen, very few content creators covers this topic.
@dhandapani.sudhakar
@dhandapani.sudhakar 2 жыл бұрын
Thanks, Naveen for the clear explanation.
@shankumondal2881
@shankumondal2881 3 жыл бұрын
Awesome !! It's a very detailed explanation and very interesting . 👍
@shrutijoshi6496
@shrutijoshi6496 6 ай бұрын
@naveenautomationlabs loved the explanation . Its actually amazing how you take this valuable time in explaining and putting out the most relevant explanation. Actually a FAN of yours.
@naveenautomationlabs
@naveenautomationlabs 6 ай бұрын
Thanks Shruti. Glad that it was helpful 😀
@niteshpandey8207
@niteshpandey8207 Жыл бұрын
Amazing concept explaned. Thank you
@nivedaravi2241
@nivedaravi2241 3 жыл бұрын
wonderful explanation
@GibyAlex0606
@GibyAlex0606 2 жыл бұрын
Thanks Naveeen , this is Awesome explanation
@sandeshkumar9156
@sandeshkumar9156 3 жыл бұрын
KZbin really has some great teachers. If I get teachers like Naveen I would love to study all day.
@shubhambansal6903
@shubhambansal6903 2 жыл бұрын
Chal jhoota 😂
@sandeshkumar9156
@sandeshkumar9156 2 жыл бұрын
@@shubhambansal6903 😂😂😂Why bro
@AbsolutelyAJYoutube
@AbsolutelyAJYoutube 3 жыл бұрын
thanks for creating this video , helped me a lot in understanding this concept.
@shilpashravge5393
@shilpashravge5393 Жыл бұрын
Excellent session as usual. Things look so easy after your explanation. Thanks for the efforts and time 😇
@funved3371
@funved3371 Жыл бұрын
You have explained this complex topic in a way which is very easy to understand. Thank you very much sir.
@naveenkumarchowki6717
@naveenkumarchowki6717 3 жыл бұрын
Thanks for give the information, I have learned so much...now I can explain got the clarity about how hash map exactly work internally...
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
Glad it was helpful!
@SomeshwarPhulari
@SomeshwarPhulari 3 жыл бұрын
Awesome! made me consontrate and understand perfectly. Thanks....
@farazahmad9009
@farazahmad9009 3 ай бұрын
Glad I came across this video. What a wonderful explanation. Thanks a lot!!
@sumitchaturvedi5933
@sumitchaturvedi5933 3 жыл бұрын
Excellent Explanation, Thanks, Bro...
@anjalijha1598
@anjalijha1598 2 жыл бұрын
As always best and this specific is really awesome Video on Hashmap internal working .
@acridpoet2766
@acridpoet2766 2 жыл бұрын
Great video, absolutely great!
@170_b_tarunakshabhattachar8
@170_b_tarunakshabhattachar8 Жыл бұрын
Mindblowing
@anupdeshmane8827
@anupdeshmane8827 Жыл бұрын
Its awesome easy to understand
@meghraj
@meghraj 3 жыл бұрын
Amazing....
@tannubajpai4782
@tannubajpai4782 3 жыл бұрын
best video Sir Keep posting Sir
@fathimasifasyedmusthafa9410
@fathimasifasyedmusthafa9410 2 жыл бұрын
Well Done ... worth watching .. !!
@likithahs2469
@likithahs2469 Жыл бұрын
really good. Thank you for posting the video. Very well explained
@maheshuma741
@maheshuma741 2 жыл бұрын
Superb explanation. I have never seen such a clean explanation. Thank you bro. Do more videos on tricky concepts like this
@varshahiremath1189
@varshahiremath1189 3 жыл бұрын
Nicely Explained Naveen
@vijayaraghavanvashudevan1977
@vijayaraghavanvashudevan1977 3 жыл бұрын
Awesome ♥ same index positions for Naveen and Tom. Thank you bro :)
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
Glad that you liked it. :)
@badrinathdanave
@badrinathdanave 3 жыл бұрын
Thanks a lot naveen for this great content.
@srianshworld3942
@srianshworld3942 3 жыл бұрын
Excellent explanation
@anurani7084
@anurani7084 Жыл бұрын
Wonderful and clear explanation 👏👏
@nithyarajaram9464
@nithyarajaram9464 2 жыл бұрын
Very well explained. Thanks a lot
@jugautomation3102
@jugautomation3102 3 жыл бұрын
Amazing Naveen sir... today I got to know what is hashing and hashmap. thank u so muchh sirr.
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
Glad that you got the idea about it. Thanks for watching.
@shalinianumula2108
@shalinianumula2108 Жыл бұрын
thankyou for explaining so clearly..
@PravasaBharathiyaTelugodu
@PravasaBharathiyaTelugodu 3 жыл бұрын
its very good and you have captured all the key points. keep rocking .. Thanks
@shobhitagarwal9321
@shobhitagarwal9321 3 жыл бұрын
Thanks Naveen, really nice presentation.. 👍
@pratikjadhav7407
@pratikjadhav7407 2 ай бұрын
Good way of teaching & explanation Sir.
@user-jz2up8hp3e
@user-jz2up8hp3e Жыл бұрын
Thank you for making this video. Loved your explanation, such an amazing content.
@priti436
@priti436 2 жыл бұрын
Best explanation found 😍
@titusjennipalli4106
@titusjennipalli4106 Ай бұрын
Great explanation, Thanks
@busijagannathrao2915
@busijagannathrao2915 2 жыл бұрын
Awesome explanation, but if the hashing explanation is more, like how it's calculating in which node the value will be inserting, then it will be the best-ever i saw in youtube.
@hemanthhemasurya8735
@hemanthhemasurya8735 2 жыл бұрын
this was really nice bro..thanks
@deepakdange5530
@deepakdange5530 2 жыл бұрын
awsome......Naveen
@VaniDatta
@VaniDatta 3 жыл бұрын
Hi, Naveen! Many thanks for your classes. They are awesome. Can you make captions available for all of your classes, please?
@baleeshwarit4207
@baleeshwarit4207 2 жыл бұрын
Excellent explanation 👌👌
@Maheshkumar-iq4bi
@Maheshkumar-iq4bi 2 жыл бұрын
Excellent Sir. 👍
#11 - Different ways of creating HashMap in Java
25:00
Naveen AutomationLabs
Рет қаралды 30 М.
She ruined my dominos! 😭 Cool train tool helps me #gadget
00:40
Go Gizmo!
Рет қаралды 53 МЛН
ТАМАЕВ vs ВЕНГАЛБИ. Самая Быстрая BMW M5 vs CLS 63
1:15:39
Асхаб Тамаев
Рет қаралды 4,6 МЛН
Stupid Barry Find Mellstroy in Escape From Prison Challenge
00:29
Garri Creative
Рет қаралды 18 МЛН
Backstage 🤫 tutorial #elsarca #tiktok
00:13
Elsa Arca
Рет қаралды 43 МЛН
How does HashMap internally works | Java Interview Questions in Hindi
17:04
Learn Code With Durgesh
Рет қаралды 91 М.
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Sahil & Sarra
Рет қаралды 602 М.
Stack and Heap: Memory Management In Java (The most important Concept in Java)
32:13
01. Internal Working of HashMap & Java-8 Enhancement
19:11
WebEncyclop Tutorials
Рет қаралды 101 М.
Как работает автопилот на Lixiang L9 Max
0:34
Семен Ефимов
Рет қаралды 16 М.
Дени против умной колонки😁
0:40
Deni & Mani
Рет қаралды 12 МЛН
📦Он вам не медведь! Обзор FlyingBear S1
18:26