01. Internal Working of HashMap & Java-8 Enhancement

  Рет қаралды 103,664

WebEncyclop Tutorials

WebEncyclop Tutorials

3 жыл бұрын

#java #interviewquestions #webencyclop
In this playlist I will try to cover all the important java interview questions along with answers in very intuitive, kind of pictorial/animated way.
Complete Playlist:
• Java Developer Intervi...
Next Video:
• 02. Equals and HashCod...
Video includes:
- 00:16 What is internal memory structure of HashMap?
- 04:09 How HashMap "Map.put()" method works?
- 06:41 What is a Hash Collision?
- 08:37 What is the use of Object.equals() method in HashMap.
- 09:03 Summary of internal working of Map.put() method in HashMap.
- 10:35 How to search element in LinkedList
- 12:03 How HashMap "Map.get()" method internally works.
- 14:30 Why we need enhancement in Java 8 HashMap, what was the problem before?
- 15:03 Java 8 enhancement in HashMap, (storing elements from LinkedList into Tree structure)
- 15:15 What is treefy threshold in HashMap ?
- 18:08 What is red-black Tree in HashMap. Binary Search Tree or Self Balancing Tree.
In this series we will be covering all Java interview questions and answers. This is going to be comprehensive list of Java interview questions which can help experienced Java developers to prepare for an interview as well as upskilling the Java knowledge.
I would always recommend everyone to watch Durga Sir (durgasoft) videos because of extensive in depth explaination on all topics if you have more time.
But here we will try to cover important aspects of Java Programming which are always asked in interviews withing less time.
We will be covering below topics in the video.
1. Hashmap Interview Questions
2. Hashmap Java 8
3. Hashmap Java Coding interviews
4. Hashmap in Java by Durga
5. Hashmap Java Interview Questions
6. HashMap internal working
7. equals-hashcode
8. get method
9. hashmap in java
10. internal-working-hashmap
11. interview-questions
12. java 8
13. java tutorial
14. java-8-nehancement
15. put method
16. job interview questions and answers
17. behavioral interview questions and answers
18. job interview tips
19. Interview questions and answers
20. Animated java
21. java animation
22. java programming tutorial
23. Hashmap java 8
24. learn java
25. java tutorial for beginners
26. Hashmap enhancements in Java 8

Пікірлер: 209
@evgenii550
@evgenii550 Жыл бұрын
you said that the capacity will be increased if 12 buckets will be full (for initial capacity = 16), but if i try to use class, which hashCode() always returns 1, as a key, then all the new pairs will be stored in one bucket with index 1 and according to debugging the capacity will still be increased. doesn't this mean that the load factor depends on the number of pairs in the hash map? not on the number of buckets with pairs
@webencyclop
@webencyclop Жыл бұрын
ah good catch, let me pin 📌 this post. thanks for your comment.
@cyberulitka4661
@cyberulitka4661 Жыл бұрын
thank you for your comment! good point!
@ukj6795
@ukj6795 6 ай бұрын
nice observation, thanks for sharing this
@dhanashreekamali3185
@dhanashreekamali3185 3 ай бұрын
Is loadfactor depending on number of entries in Hashmap? @webencyclop (if not what is the meaning of pairs here? what does this pair signify?)
@pratikbhange2757
@pratikbhange2757 3 ай бұрын
​@@dhanashreekamali3185key and value😊
@aniketbharsakale2561
@aniketbharsakale2561 3 жыл бұрын
Your pictorial representations, the images & the color that's choosen for slides, the way you have explained it so neatly, its commendable. You have simplified a tough concept and making complex things look simple is an art. Great job. Good going!
@webencyclop
@webencyclop 3 жыл бұрын
Thanks a lot for praise & motivation!
@saikumartalluri8476
@saikumartalluri8476 2 жыл бұрын
@@webencyclop Please upload more videos ... Very much helpful. Thanks.
@rekhaagroya1982
@rekhaagroya1982 2 жыл бұрын
Agree.
@AzeriFire
@AzeriFire 2 жыл бұрын
I have never seen such detailed tutorial about the hashmap! I want to thank you, even I knew how it works.
@imanidesireejones9684
@imanidesireejones9684 2 жыл бұрын
wow so easy to understand. I like how you actually explain certain keywords instead of grazing over concepts. this was so helpful thank you!
@yogeshpawarvlogs527
@yogeshpawarvlogs527 3 жыл бұрын
The way he represents the data is phenomenal... Thums up for his presentation. 👍👍👍
@nitincareer9190
@nitincareer9190 3 жыл бұрын
Excellent video on Hashmap so far, keep doing more like this.
@mohammadsadeghi2353
@mohammadsadeghi2353 Жыл бұрын
You are awesome at explaining complex topics. Thank you.
@Veronica-vq5iz
@Veronica-vq5iz 2 жыл бұрын
Wow, you explained it so well, I have watched so many tutorials for this concept and never had this deep understanding. Thank u so much.
@kusumbhatt2168
@kusumbhatt2168 3 жыл бұрын
You explained this concept in detail, this is very helpful... thank you!!
@AkhileshKumar-li6me
@AkhileshKumar-li6me 5 ай бұрын
Kindly note that when hashmap is passed the duplicate key, it calls the hashCode() method to generate the hash value for the key and this hash value helps in determining where to put this new entry but since this index/position already has one entry. Since each bucket stores the entry/ies in the form of a linked list so new entry will be added at the top/right end of the linked list. The same logic will be applied if another duplicate key arrives. Please note, when we try to retrieve the value by passing the key(which is duplicate in nature), hashmap goes to the appropriate index by calculating the hash value and traverses the linked list, and returns the most recent value as all the keys are same.
@resh9906
@resh9906 2 жыл бұрын
Best explanation for hashmap. Thanks!
@kumarprakash93
@kumarprakash93 Жыл бұрын
Appreciated the way you explained the concept. Thank you.
@shilpakothre4893
@shilpakothre4893 3 жыл бұрын
Thank u for explaining in such a wonderful way. Before watching this video I have lot of confusion in this topic. This clear my all doubts.
@SouravChatterjeeboss
@SouravChatterjeeboss 2 жыл бұрын
Best tutorial I have ever seen. Thank you.
@sweetGemini31
@sweetGemini31 2 жыл бұрын
Very easy to understand! Great job!
@lavanyapadma3024
@lavanyapadma3024 Жыл бұрын
Best Explanation ever…have seen so many videos but this is the best, Thank you 🙏
@ahir_shubham
@ahir_shubham 2 жыл бұрын
Beautiful explanation with specially the images...felt very comfortable to understand...Keep going...Thankyou!
@gudesreekanth6373
@gudesreekanth6373 2 жыл бұрын
Best explanation so far in youtube on hashmap internal working... Nice buddy!! Appreciate your effort ...
@manishpatidar5379
@manishpatidar5379 3 жыл бұрын
Picturial representation makes this videos excellent... It will be easy to remember the flow chart
@haihellonamastey
@haihellonamastey 2 жыл бұрын
crystal clear explaination👌👌👌
@randhirverma8042
@randhirverma8042 3 жыл бұрын
Thanks, man thanks a lot finally my concept is cleared, One of the best explanation I got on youtube
@sandeep_khangar
@sandeep_khangar 2 жыл бұрын
Bro, one of the best video I've seen. Proper explanation , diagram. 🔥
@monikapreethi4847
@monikapreethi4847 2 жыл бұрын
thankyou so much. its really excellent explanation with neat slides, think your the best tutor to explain the concept in a simplified manner. I think its the best video on hash map .
@Itsarpitgupta
@Itsarpitgupta 2 жыл бұрын
Thanks for the wonderful explanation.
@snehasavane9141
@snehasavane9141 2 жыл бұрын
very neatly explained basics of working of hashmap,linkedlist,tree
@shrutithanekar3464
@shrutithanekar3464 2 жыл бұрын
Thank you so much for this video I was actually able to visualise internal structure of the hashmap
@janakinaidu_studios9027
@janakinaidu_studios9027 2 жыл бұрын
Awesome Explanation
@parambharti7095
@parambharti7095 2 жыл бұрын
Great explanations. Thanks !! Please keep making more videos. Nice way of teaching.
@shyamvittal
@shyamvittal 2 жыл бұрын
One word... "AWESOME"
@AyushmaanPandey
@AyushmaanPandey 2 жыл бұрын
Very precise explanation.Thanks a lot
@pratikjagadale3216
@pratikjagadale3216 3 жыл бұрын
Tried a lot on the internet to understand hashmap working ... finally brother understood from your video👍👍👍
@desiengineerashish4908
@desiengineerashish4908 Жыл бұрын
Thanks man! You made it far easy...
@Shaanku
@Shaanku 2 жыл бұрын
Thanks for the explanation. It was very helpful
@koushikdas2755
@koushikdas2755 2 жыл бұрын
Just awesome.....Thanks you sir!
@subhaneilsengupta3053
@subhaneilsengupta3053 2 жыл бұрын
Excellent explanation.
@pawankumar-ez9mf
@pawankumar-ez9mf 2 жыл бұрын
Very good explaining not able to find anywhere else
@jitesh1480
@jitesh1480 2 жыл бұрын
V good explanation, simple and on point. Thanks and Keep making more videos like this!
@user-lr7cg3yk7p
@user-lr7cg3yk7p Жыл бұрын
Great session, neat and good explanation. Thank you
@illinoska
@illinoska Жыл бұрын
Very easy to understand. Thank you!
@monaliparihar5138
@monaliparihar5138 2 жыл бұрын
One of the best tutorial …. Thank you
@maheshchennamsetti549
@maheshchennamsetti549 2 жыл бұрын
I have seen many videos but I am wasn't satisfied with any of them .After seeing this video I got an absolute clarity thanks to this man for explaining in such a detailed way.
@aayushiyadav7914
@aayushiyadav7914 2 жыл бұрын
Thank you for the explanation. It's really helpful.
@vigneshv5092
@vigneshv5092 3 жыл бұрын
Well documented video. Thanks
@dhananajaykrishna8259
@dhananajaykrishna8259 3 жыл бұрын
Best video on working of Hashmap . Also the treeify threshold concept is well explained. Thank you!!
@syedaqib2912
@syedaqib2912 2 жыл бұрын
Really well explained !!
@prashanthkumar-jj3dq
@prashanthkumar-jj3dq 3 жыл бұрын
Excellent explanation
@IZZY3201
@IZZY3201 2 жыл бұрын
Amazing explanation👍👍
@kartikbadnorejain4708
@kartikbadnorejain4708 6 ай бұрын
Super Awesome. This is what I was looking for.
@aniruddhachunne3011
@aniruddhachunne3011 2 жыл бұрын
Superb.... you are the best.... god bless you
@VishalRaj-wu8il
@VishalRaj-wu8il 4 ай бұрын
best video on HashMap internal working and loved your content.thank you for such great content.😊
@armanchaudhari4767
@armanchaudhari4767 6 ай бұрын
One of the best tutorial for this topic
@anilmaurya55
@anilmaurya55 2 жыл бұрын
Sir your teaching is so good and simple and so effective...
@ektayoga
@ektayoga 2 жыл бұрын
Thank you sir. You are excellent.
@SaravanaKumar-yh2pf
@SaravanaKumar-yh2pf Жыл бұрын
Thank you for the clear explanation
@ganeshkulkarni9648
@ganeshkulkarni9648 2 жыл бұрын
Wow, what a prefect explanation it was. Thanks a lot man for this smooth explanation, We're looking forward for many videos, but you have stopped posting it.
@Joyddep
@Joyddep Жыл бұрын
Thank you for the explanation!
@krmanish472
@krmanish472 Жыл бұрын
Thanks for making life easier
@yogeshshinde757
@yogeshshinde757 2 жыл бұрын
Great explanation
@amitnakate1293
@amitnakate1293 2 жыл бұрын
Represented in very simplified manner...👍
@nagarjunreddy1040
@nagarjunreddy1040 2 жыл бұрын
Very nice, love it
@bhawnavanani49
@bhawnavanani49 2 жыл бұрын
Very Informative
@ravirajpradhan4720
@ravirajpradhan4720 2 жыл бұрын
All is best ....very nice
@sharanyabhiram3601
@sharanyabhiram3601 Күн бұрын
Hey your core java interview series is very helpful.. I wish you continue doing many more topics in this.
@deeptichaudhary1610
@deeptichaudhary1610 9 ай бұрын
Very nice explanation.Thank you
@mannatsingh9671
@mannatsingh9671 3 жыл бұрын
Thank you so much .. very well explained
@rameshnallajarla5697
@rameshnallajarla5697 2 жыл бұрын
very good explanation.
@praveenraturi4095
@praveenraturi4095 2 жыл бұрын
awesome explanation
@nvs4600
@nvs4600 3 жыл бұрын
Thanks so much. It's very helpful for me.
@AnkushKumar-fq3mp
@AnkushKumar-fq3mp 2 жыл бұрын
Really nice!
@milimishra6447
@milimishra6447 2 жыл бұрын
best explaination ❤❤❤
@ukj6795
@ukj6795 6 ай бұрын
amazing explanation, thank you
@abhinavdogra3835
@abhinavdogra3835 2 жыл бұрын
Extraordinary explanation pls make more videos in this playlist
@ayyappabudihal291
@ayyappabudihal291 Жыл бұрын
Good explanation 👍
@user-wg5rd6rl11fgtt
@user-wg5rd6rl11fgtt Жыл бұрын
Very nice explanation
@vishalgaikwad873
@vishalgaikwad873 7 ай бұрын
Thanks, It's really neat & clear explanation🎉🎉
@yatinbatra6124
@yatinbatra6124 3 жыл бұрын
Amazing explanation. Thanks. Please prepare some more videos.
@akashpolekar6779
@akashpolekar6779 3 күн бұрын
Best Explanation ever 💯
@dnyaneshtathode5511
@dnyaneshtathode5511 Жыл бұрын
Good going mate. Keep it up.
@sunilkumar-yn7mk
@sunilkumar-yn7mk 3 жыл бұрын
Very good explanation
@manognajoshik8465
@manognajoshik8465 2 жыл бұрын
Perfect one!! 😊👍
@maddynikam3579
@maddynikam3579 2 жыл бұрын
excellent explanation. thanks a lot
@scrppr8270
@scrppr8270 3 жыл бұрын
Please Upload more videos.....your explanation is just awesome👌👌👌😍
@sandhyaaa24
@sandhyaaa24 2 жыл бұрын
You are a star man ... thank you :)
@deeptimonga7375
@deeptimonga7375 2 жыл бұрын
Excellent content & presentation. Eagerly waiting for the new videos. Please keep up the good work!!!
@apurvaRTink
@apurvaRTink 2 жыл бұрын
Thank you sooo much because of your this video i understood the internal working of hashmap after so many days. Nice explaination...🙏🙏
@a_r_c_h_a_n_a
@a_r_c_h_a_n_a Жыл бұрын
Till now i have seen so many videos about the HashMap collision, this is one which explains every thing without any chance of doubt. Great great Job..........!!!🤩
@webencyclop
@webencyclop Жыл бұрын
thank you..
@nikhilsai1351
@nikhilsai1351 Жыл бұрын
Excellent explanation worth a watch🔥🔥
@webencyclop
@webencyclop Жыл бұрын
thank you 🙏
@dipalijibhakate2815
@dipalijibhakate2815 5 ай бұрын
A great explanation ,one of the best video till now i watched on Hashmap internal...Thank you for sharing a such content😊
@nayanagouda3767
@nayanagouda3767 Жыл бұрын
Tysm for simply explanation... I have seen much vdo bt this is the best vdo.. Tq once again..🙏🏻
@webencyclop
@webencyclop Жыл бұрын
If you can, please go through my description & give a star to my repo. It'll be very helpful to me. Thank you ✌️
@abhimanyusingh4991
@abhimanyusingh4991 Ай бұрын
Great Explanation
@abdulrashidsinancu1630
@abdulrashidsinancu1630 5 ай бұрын
Good lecture. Helpful
@yusufsaifi3108
@yusufsaifi3108 2 жыл бұрын
Plz make full collection type video ur way of represente slide in pictorial way is wonder full .keep it up......
@pradipr2434
@pradipr2434 2 жыл бұрын
Wow. Well explained the concept with practical example👏 And Thank you for the clear explanation. Your channel deserves more subscribers
@ishachhabra5150
@ishachhabra5150 2 жыл бұрын
Good job 👍
@dipaliyadav-koli1060
@dipaliyadav-koli1060 2 жыл бұрын
Thank you so much..
@anandankishore
@anandankishore Жыл бұрын
Nice Explanation
@subairkoppam1840
@subairkoppam1840 Жыл бұрын
very good explanation
@learnit4499
@learnit4499 2 жыл бұрын
You are LEGEND man! The way you explained I can answer hashmap even after death :D
@PrivateMovie
@PrivateMovie Ай бұрын
🎯 Key Takeaways for quick navigation: 00:00 *Interview question introduction* 00:13 *Creating new jobs* 01:10 *Subscribe for updates* 02:22 *Journey components* 03:49 *Multiple nodes concept* 05:09 *Hash code importance* 06:47 *Calculating values* 08:51 *Node equality check* 10:35 *Item searching process* 12:29 *Time complexity overview* 14:13 *Notification system* 15:11 *Tree conversion process* 16:04 *Web content benefits* 16:28 *Tree structure benefits* 16:52 *Search optimization method* 17:23 *String comparison methods* 17:58 *Red-black tree definition* 18:11 *Binary search tree* 18:29 *Tree conversion process* 18:49 *Future interview questions* Made with HARPA AI
@tunghoang9373
@tunghoang9373 3 жыл бұрын
Thanks from a user from Viet Nam Your explanation was so easy to understand although it's hard to understand your english as much :)
02. Equals and HashCode Contract & Different Variations
11:19
WebEncyclop Tutorials
Рет қаралды 52 М.
Map and HashMap in Java with Internal Working- Interview Question
19:27
Daily Code Buffer
Рет қаралды 28 М.
Was ist im Eis versteckt? 🧊 Coole Winter-Gadgets von Amazon
00:37
SMOL German
Рет қаралды 29 МЛН
I’m just a kid 🥹🥰 LeoNata family #shorts
00:12
LeoNata Family
Рет қаралды 20 МЛН
Java 8 Streams | map () & flatMap() Example | JavaTechie
15:37
Java Techie
Рет қаралды 207 М.
How HashMap works in Java? With Animation!! whats new in java8 tutorial
15:29
Ranjith ramachandran
Рет қаралды 1 МЛН
05. How to create immutable class - Java Interview Questions
9:27
WebEncyclop Tutorials
Рет қаралды 23 М.
Map and HashMap in Java - Full Tutorial
10:10
Coding with John
Рет қаралды 543 М.
MUST KNOW junior role JAVA interview questions
42:15
Keep On Coding
Рет қаралды 101 М.