Тёмный

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

Naveen AutomationLabs
Подписаться 389 тыс.
Просмотров 126 тыс.
50% 1

Опубликовано:

 

5 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 239   
@soumyajit443
@soumyajit443 3 года назад
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 3 года назад
Most welcome:) keep learning 👍😃
@soumyajit443
@soumyajit443 3 года назад
@@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 3 года назад
@@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 3 года назад
@@soumyajit443 check his website. He s taking live classes
@sandeshkumar9156
@sandeshkumar9156 3 года назад
RU-vid 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
@rd3316
@rd3316 3 года назад
🙌take a bow Naveen . I searched this on internet and no one has explained it in such an easy way like you .
@abhiPn9160
@abhiPn9160 Год назад
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
@sureshgarine
@sureshgarine 4 года назад
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.
@funved3371
@funved3371 Год назад
You have explained this complex topic in a way which is very easy to understand. Thank you very much sir.
@kumargaurav4362
@kumargaurav4362 3 года назад
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.
@Lipunknb
@Lipunknb Год назад
the best hashmap internal working video on youtube. OP🙌
@magicallife9299
@magicallife9299 3 года назад
Best explanation of hash map
@Sogdo
@Sogdo 3 года назад
Thanks for the video Naveen, very few content creators covers this topic.
@prabhakarreddy9180
@prabhakarreddy9180 3 года назад
Entire RU-vid ur explanation is just awesome
@nithyar767
@nithyar767 Год назад
You have done a wonderful job Naveen ! Thanks!
@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.
@utpalkanti
@utpalkanti 3 года назад
Excellent explanation. Many many thanks for this kind of video. Recollecting my old college day topics now...
@ambicaponnaluri7743
@ambicaponnaluri7743 Год назад
All my queries regarding Harshmap were cleared after watching this.Awesome work😊 Keep rocking.. Thankyou much Naveen
@shobhit9826
@shobhit9826 4 года назад
Yes this is the most important interview question I have also faced the same multiple times
@naveenautomationlabs
@naveenautomationlabs 4 года назад
yes it is. please prepare it.
@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.
@jatinsharma3792
@jatinsharma3792 2 года назад
You always saves me in difficult situation where understanding is not easy. :D Thanks!!
@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!
@sharvilpatil8742
@sharvilpatil8742 2 года назад
This is the best explanation one can ever get on Hashing and Hashmap. Great explanation Naveen!
@msanyasirao5411
@msanyasirao5411 3 года назад
Thank you.. Explained in an understanding of this typical hash code topic..Really Good
@ashuiet
@ashuiet 4 года назад
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 4 года назад
Glad that you got the concept. :)
@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
@raghugunda2732
@raghugunda2732 3 года назад
Very good explanation. Thank you so much
@amrendrakumar4280
@amrendrakumar4280 3 года назад
theory with practical ,very well explained
@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.
@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...
@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 RU-vid but no one has explained these topics in such an easy and understanding way. 😊👍👍
@mytrading6918
@mytrading6918 2 года назад
I think while inserting means put missed one point: at 11.10 The value 4 is the computed index value where the Key will be stored in HashMap. In this case, equals() method check that both Keys are equal or not. If Keys are same, replace the value with the current value. Otherwise, connect this node object to the existing node object through the LinkedList. Hence both Keys will be stored at index 4.
@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
@sujith6323
@sujith6323 3 года назад
Explanation followed by the important notes was very helpful. Really appreciate this Quality content.
@suyogdtalathi924
@suyogdtalathi924 2 года назад
Thanks !! After searching more for hashmap internal structure this one is the best explanation
@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...
@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.
@dhareppasasalatti7102
@dhareppasasalatti7102 3 года назад
The best out of the best Explanation I have even seen on this hashmap.. Thank you sir for the effort.. It's was 💯💯
@lockdowndiaries4090
@lockdowndiaries4090 3 года назад
super. simple and clear explanation. i have searched many videos. nothing compared to urs. great and thank you so much for helping us out
@Anuragidiot1
@Anuragidiot1 3 года назад
Great Video finally it helped me understand how it works Thank You Naveen
@vinodkumar-ss3mb
@vinodkumar-ss3mb 3 года назад
What a wonderful explanation sir You made this topic so easy God bless you 🙏
@mahiradolan4160
@mahiradolan4160 3 года назад
Very detailed and excellent explanation. Thank you, Naveen!
@tonystark4917
@tonystark4917 2 месяца назад
Best Explanation For Hashmap , Thanks.
@parameshwarpr1364
@parameshwarpr1364 3 года назад
Well explained sir, thank you so much.
@vemurisirisha8543
@vemurisirisha8543 3 года назад
Superb explanation sir. Thank you so much for all ur efforts!
@charismatic2
@charismatic2 3 года назад
Thank you so much Naveen for detailed and clear explanation.
@usmanahmad5448
@usmanahmad5448 2 года назад
This is by far the best explanation.
@hasmukhmaniya4214
@hasmukhmaniya4214 3 года назад
Thanks for the video Naveen and one of the best video to understand HashMap functions.
@SarangHoley
@SarangHoley 4 года назад
Thanks for the video Naveen, very few content creators covers this topic, and like this till now not available on RU-vid 😊👍👍
@naveenautomationlabs
@naveenautomationlabs 4 года назад
Glad you liked it
@arnavpatil583
@arnavpatil583 4 года назад
Already cover this topic before 2 years check the links ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-CojCE-ojdGY.html
@ankitmahajan8295
@ankitmahajan8295 4 года назад
@@arnavpatil583 but naveen's explanation is at different level. he explained it really well.
@jugautomation3102
@jugautomation3102 4 года назад
@@ankitmahajan8295 I agre.
@SarangHoley
@SarangHoley 4 года назад
@@ankitmahajan8295 Absolutely correct Ankit, I am completely agree with you.
@aryacode1705
@aryacode1705 3 года назад
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
@sachida23
@sachida23 3 года назад
Explanation is precise and crisp and well documented thanks for this post.
@gurunadhmitikela2918
@gurunadhmitikela2918 3 года назад
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. :)
@shrutijoshi6496
@shrutijoshi6496 10 месяцев назад
@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 10 месяцев назад
Thanks Shruti. Glad that it was helpful 😀
@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.
@farazahmad9009
@farazahmad9009 6 месяцев назад
Glad I came across this video. What a wonderful explanation. Thanks a lot!!
@b3creativevlogs815
@b3creativevlogs815 3 года назад
Superb Explanation Naveen now I understood the HashMap how its working...Thank you so much...
@pratikjadhav_6396
@pratikjadhav_6396 6 месяцев назад
Good way of teaching & explanation Sir.
@MrYashMundey
@MrYashMundey 3 года назад
I will never forget this now. Thank you for making it so easy :)
@naveenautomationlabs
@naveenautomationlabs 3 года назад
My pleasure 😊
@dhandapani.sudhakar
@dhandapani.sudhakar 2 года назад
Thanks, Naveen for the clear explanation.
@vandanamishra6748
@vandanamishra6748 3 года назад
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 ..🙏🙏
@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 :).
@priyanshusinha7056
@priyanshusinha7056 3 года назад
Good Explanation ❤❤ Thank you NAVEEN Sir
@GibyAlex0606
@GibyAlex0606 2 года назад
Thanks Naveeen , this is Awesome explanation
@sreedevimoningi9739
@sreedevimoningi9739 3 года назад
Thank you so much Naveen for this video, very detailed and excellent explanation you have given. I did really felt amazing.
@vijayaraghavanvashudevan1977
@vijayaraghavanvashudevan1977 4 года назад
Awesome ♥ same index positions for Naveen and Tom. Thank you bro :)
@naveenautomationlabs
@naveenautomationlabs 3 года назад
Glad that you liked it. :)
@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.
@tarunbuser
@tarunbuser 2 года назад
Mindblowing
@sandeepchoudhary3882
@sandeepchoudhary3882 3 года назад
Awesome...very detailed explanation. Thank you Naveen !
@shilpashravge5393
@shilpashravge5393 Год назад
Excellent session as usual. Things look so easy after your explanation. Thanks for the efforts and time 😇
@jugautomation3102
@jugautomation3102 4 года назад
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.
@AbsolutelyAJYoutube
@AbsolutelyAJYoutube 3 года назад
thanks for creating this video , helped me a lot in understanding this concept.
@gopalpandurangan9768
@gopalpandurangan9768 3 года назад
Excellent demonstration on HashMap. Thanks
@shrutisonawane8130
@shrutisonawane8130 3 года назад
Very well explained. Thank u so much. But i have one question. Initial size of bucket is 16. When the size of bucket is increase and how?
@gauravjaykar8126
@gauravjaykar8126 3 года назад
Appreciate your Work ,You Covered every Possible concept
@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
@vikasyadav-es8uh
@vikasyadav-es8uh 3 года назад
Thanx for creating this video naveen today only i seen this hashcode and index prectically in deep 😊
@naveenautomationlabs
@naveenautomationlabs 3 года назад
Glad you liked it
@sinudubey
@sinudubey 2 месяца назад
Jitna Thank you kare kam hai sir❤🙏
@itzrajani
@itzrajani 3 года назад
Thanks much Naveen for the very detailed explaination.After subscribing to your channel started learning Automation core concepts with confidence. I couldn't even think of my youtube search without this "Naveen automation labs" prefix for Java, python, selenium, design patterns POM, BDD, Github, Jenkin's, concepts, etc, and whatnot.
@naveenautomationlabs
@naveenautomationlabs 3 года назад
Thanks for watching @Rajani :)
@VaniDatta
@VaniDatta 3 года назад
Hi, Naveen! Many thanks for your classes. They are awesome. Can you make captions available for all of your classes, please?
@anupdeshmane8827
@anupdeshmane8827 2 года назад
Its awesome easy to understand
@Coolharshit149
@Coolharshit149 3 года назад
What an amazing explanation. Thanks :)
@maheshpotdar1161
@maheshpotdar1161 Год назад
sir u Killed hash map.....u r a amazing
@naveenautomationlabs
@naveenautomationlabs Год назад
Thanks buddy
@anjalijha1598
@anjalijha1598 3 года назад
As always best and this specific is really awesome Video on Hashmap internal working .
@nivedaravi2241
@nivedaravi2241 3 года назад
wonderful explanation
@sathishrajasekar1155
@sathishrajasekar1155 3 года назад
Thanks Naveen, Useful video.
@himanshikushwah8341
@himanshikushwah8341 3 года назад
Best explaination i got so far👍
@bibekanandaswain5506
@bibekanandaswain5506 3 года назад
When we put a duplicate key internally it replace the value or create a new node. Plz ans sir.. And it is the best explanation i have ever seen on this topic.
@srianshworld3942
@srianshworld3942 3 года назад
Excellent explanation
@NehaSingh-um5ib
@NehaSingh-um5ib 2 года назад
hey Naveen .... too good explanation of the topic ...please let me know if you have any written document for that.
@shankumondal2881
@shankumondal2881 3 года назад
Awesome !! It's a very detailed explanation and very interesting . 👍
@panneerselvam.k1613
@panneerselvam.k1613 7 месяцев назад
Really now only i can able to understand Thanks Bro
@priti436
@priti436 2 года назад
Best explanation found 😍
@tannubajpai4782
@tannubajpai4782 3 года назад
best video Sir Keep posting Sir
@adityapandit6568
@adityapandit6568 3 года назад
thanks sir very good exp
@syedjami4033
@syedjami4033 3 года назад
Amazing. Just loved the explanation.
@badrinathdanave
@badrinathdanave 3 года назад
Thanks a lot naveen for this great content.
@WorldeFUN
@WorldeFUN 4 года назад
Very well explained..
@naveenautomationlabs
@naveenautomationlabs 3 года назад
Thanks Ajay :)
@Fun_Flicksss
@Fun_Flicksss 2 года назад
was very helpful thank you
@anurani7084
@anurani7084 Год назад
Wonderful and clear explanation 👏👏
@GyanPrakash-t3d
@GyanPrakash-t3d Год назад
Thank you for making this video. Loved your explanation, such an amazing content.
@kotireddy5272
@kotireddy5272 3 года назад
Great bro that's amazing explanation and easy to understand
@varshahiremath1189
@varshahiremath1189 3 года назад
Nicely Explained Naveen
Далее
#11 - Different ways of creating HashMap in Java
25:00
Пчёлы некроманты.
00:46
Просмотров 24 тыс.
01. Internal Working of HashMap & Java-8 Enhancement
19:11
Set and HashSet in Java - Full Tutorial
20:43
Просмотров 221 тыс.