01. Internal Working of HashMap & Java-8 Enhancement

  Рет қаралды 101,939

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

Пікірлер: 206
@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 5 ай бұрын
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 Жыл бұрын
Agree.
@yogeshpawarvlogs527
@yogeshpawarvlogs527 3 жыл бұрын
The way he represents the data is phenomenal... Thums up for his presentation. 👍👍👍
@snehasavane9141
@snehasavane9141 2 жыл бұрын
very neatly explained basics of working of hashmap,linkedlist,tree
@pratikjagadale3216
@pratikjagadale3216 3 жыл бұрын
Tried a lot on the internet to understand hashmap working ... finally brother understood from your video👍👍👍
@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!
@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.
@AzeriFire
@AzeriFire 2 жыл бұрын
I have never seen such detailed tutorial about the hashmap! I want to thank you, even I knew how it works.
@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.
@manishpatidar5379
@manishpatidar5379 3 жыл бұрын
Picturial representation makes this videos excellent... It will be easy to remember the flow chart
@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.
@ahir_shubham
@ahir_shubham 2 жыл бұрын
Beautiful explanation with specially the images...felt very comfortable to understand...Keep going...Thankyou!
@kusumbhatt2168
@kusumbhatt2168 3 жыл бұрын
You explained this concept in detail, this is very helpful... thank you!!
@PrivateMovie
@PrivateMovie 27 күн бұрын
🎯 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
@gudesreekanth6373
@gudesreekanth6373 2 жыл бұрын
Best explanation so far in youtube on hashmap internal working... Nice buddy!! Appreciate your effort ...
@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.
@lavanyapadma3024
@lavanyapadma3024 Жыл бұрын
Best Explanation ever…have seen so many videos but this is the best, Thank you 🙏
@kumarprakash93
@kumarprakash93 Жыл бұрын
Appreciated the way you explained the concept. Thank you.
@parambharti7095
@parambharti7095 2 жыл бұрын
Great explanations. Thanks !! Please keep making more videos. Nice way of teaching.
@dhananajaykrishna8259
@dhananajaykrishna8259 3 жыл бұрын
Best video on working of Hashmap . Also the treeify threshold concept is well explained. Thank you!!
@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.
@resh9906
@resh9906 2 жыл бұрын
Best explanation for hashmap. Thanks!
@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.
@vigneshv5092
@vigneshv5092 3 жыл бұрын
Well documented video. Thanks
@sandeep_khangar
@sandeep_khangar 2 жыл бұрын
Bro, one of the best video I've seen. Proper explanation , diagram. 🔥
@VishalRaj-wu8il
@VishalRaj-wu8il 4 ай бұрын
best video on HashMap internal working and loved your content.thank you for such great content.😊
@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..
@sweetGemini31
@sweetGemini31 2 жыл бұрын
Very easy to understand! Great job!
@shrutithanekar3464
@shrutithanekar3464 2 жыл бұрын
Thank you so much for this video I was actually able to visualise internal structure of the hashmap
@illinoska
@illinoska Жыл бұрын
Very easy to understand. Thank you!
@aniruddhachunne3011
@aniruddhachunne3011 2 жыл бұрын
Superb.... you are the best.... god bless you
@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 .
@yatinbatra6124
@yatinbatra6124 3 жыл бұрын
Amazing explanation. Thanks. Please prepare some more videos.
@kartikbadnorejain4708
@kartikbadnorejain4708 6 ай бұрын
Super Awesome. This is what I was looking for.
@shyamvittal
@shyamvittal 2 жыл бұрын
One word... "AWESOME"
@deeptichaudhary1610
@deeptichaudhary1610 8 ай бұрын
Very nice explanation.Thank you
@user-lr7cg3yk7p
@user-lr7cg3yk7p Жыл бұрын
Great session, neat and good explanation. Thank you
@randhirverma8042
@randhirverma8042 3 жыл бұрын
Thanks, man thanks a lot finally my concept is cleared, One of the best explanation I got on youtube
@AyushmaanPandey
@AyushmaanPandey 2 жыл бұрын
Very precise explanation.Thanks a lot
@SouravChatterjeeboss
@SouravChatterjeeboss 2 жыл бұрын
Best tutorial I have ever seen. Thank you.
@jitesh1480
@jitesh1480 2 жыл бұрын
V good explanation, simple and on point. Thanks and Keep making more videos like this!
@anilmaurya55
@anilmaurya55 2 жыл бұрын
Sir your teaching is so good and simple and so effective...
@nandanpatil299
@nandanpatil299 2 жыл бұрын
Best Representation, Really helpful, request to you please create video on "Internal working of HashSet"...
@aayushiyadav7914
@aayushiyadav7914 2 жыл бұрын
Thank you for the explanation. It's really helpful.
@desiengineerashish4908
@desiengineerashish4908 Жыл бұрын
Thanks man! You made it far easy...
@deeptimonga7375
@deeptimonga7375 2 жыл бұрын
Excellent content & presentation. Eagerly waiting for the new videos. Please keep up the good work!!!
@scrppr8270
@scrppr8270 3 жыл бұрын
Please Upload more videos.....your explanation is just awesome👌👌👌😍
@abhinavdogra3835
@abhinavdogra3835 2 жыл бұрын
Extraordinary explanation pls make more videos in this playlist
@ukj6795
@ukj6795 5 ай бұрын
amazing explanation, thank you
@Itsarpitgupta
@Itsarpitgupta 2 жыл бұрын
Thanks for the wonderful explanation.
@jamshadm
@jamshadm 2 жыл бұрын
Explained very well. Thank you :)
@mit1696
@mit1696 2 жыл бұрын
Awesome Explanation
@nvs4600
@nvs4600 3 жыл бұрын
Thanks so much. It's very helpful for me.
@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 :)
@haihellonamastey
@haihellonamastey 2 жыл бұрын
crystal clear explaination👌👌👌
@abdulrashidsinancu1630
@abdulrashidsinancu1630 5 ай бұрын
Good lecture. Helpful
@armanchaudhari4767
@armanchaudhari4767 5 ай бұрын
One of the best tutorial for this topic
@SaravanaKumar-yh2pf
@SaravanaKumar-yh2pf Жыл бұрын
Thank you for the clear explanation
@supun_sandaruwan
@supun_sandaruwan 4 ай бұрын
Great Video short and sweet
@dipalijibhakate2815
@dipalijibhakate2815 4 ай бұрын
A great explanation ,one of the best video till now i watched on Hashmap internal...Thank you for sharing a such content😊
@mannatsingh9671
@mannatsingh9671 3 жыл бұрын
Thank you so much .. very well explained
@Joyddep
@Joyddep Жыл бұрын
Thank you for the explanation!
@yusufsaifi3108
@yusufsaifi3108 2 жыл бұрын
Plz make full collection type video ur way of represente slide in pictorial way is wonder full .keep it up......
@pawankumar-ez9mf
@pawankumar-ez9mf 2 жыл бұрын
Very good explaining not able to find anywhere else
@Shaanku
@Shaanku 2 жыл бұрын
Thanks for the explanation. It was very helpful
@user-wg5rd6rl11fgt
@user-wg5rd6rl11fgt Жыл бұрын
Very nice explanation
@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...🙏🙏
@amitnakate1293
@amitnakate1293 2 жыл бұрын
Represented in very simplified manner...👍
@subairkoppam1840
@subairkoppam1840 11 ай бұрын
very good explanation
@IZZY3201
@IZZY3201 2 жыл бұрын
Amazing explanation👍👍
@abhimanyusingh4991
@abhimanyusingh4991 Ай бұрын
Great Explanation
@anshulmaloo5355
@anshulmaloo5355 3 жыл бұрын
Excellent explanation
@subhaneilsengupta3053
@subhaneilsengupta3053 2 жыл бұрын
Excellent explanation.
@koushikdas2755
@koushikdas2755 2 жыл бұрын
Just awesome.....Thanks you sir!
@syedaqib2912
@syedaqib2912 2 жыл бұрын
Really well explained !!
@bhawnavanani49
@bhawnavanani49 2 жыл бұрын
Very Informative
@ravirajpradhan4720
@ravirajpradhan4720 2 жыл бұрын
All is best ....very nice
@sunilkumar-yn7mk
@sunilkumar-yn7mk 3 жыл бұрын
Very good explanation
@kumartanay3566
@kumartanay3566 2 ай бұрын
Great explanation
@nagarjunreddy1040
@nagarjunreddy1040 2 жыл бұрын
Very nice, love it
@vishalgaikwad873
@vishalgaikwad873 6 ай бұрын
Thanks, It's really neat & clear explanation🎉🎉
@pradipr2434
@pradipr2434 2 жыл бұрын
Wow. Well explained the concept with practical example👏 And Thank you for the clear explanation. Your channel deserves more subscribers
@krmanish472
@krmanish472 Жыл бұрын
Thanks for making life easier
@Imdadullah-FIZFamilyTimes
@Imdadullah-FIZFamilyTimes 2 жыл бұрын
superb explanation ,it cleared the concepts.Kindly post the multiple thread and design pattern concepts of java
@nikhilsai1351
@nikhilsai1351 Жыл бұрын
Excellent explanation worth a watch🔥🔥
@webencyclop
@webencyclop Жыл бұрын
thank you 🙏
@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 ✌️
@rameshnallajarla5697
@rameshnallajarla5697 2 жыл бұрын
very good explanation.
@satyamsc
@satyamsc Жыл бұрын
simple explain for tricky topic, easily understandable.. nice.. 👍
@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 ✌️
@anandankishore
@anandankishore Жыл бұрын
Nice Explanation
@ManishKumar-qx1kh
@ManishKumar-qx1kh 2 жыл бұрын
Really aprreciate the hardwork. Cn you please make a playlist of all java collections and their internal working.
@AnkushKumar-fq3mp
@AnkushKumar-fq3mp 2 жыл бұрын
Really nice!
@ayyappabudihal291
@ayyappabudihal291 Жыл бұрын
Good explanation 👍
@maddynikam3579
@maddynikam3579 2 жыл бұрын
excellent explanation. thanks a lot
@praveenraturi4095
@praveenraturi4095 2 жыл бұрын
awesome explanation
@ektayoga
@ektayoga 2 жыл бұрын
Thank you sir. You are excellent.
@PadmaPonnu
@PadmaPonnu Жыл бұрын
Best video I have come across....It would be great if you can add tutorials on multi-threading and concurrency topics....
@dnyaneshtathode5511
@dnyaneshtathode5511 Жыл бұрын
Good going mate. Keep it up.
@learnit4499
@learnit4499 2 жыл бұрын
You are LEGEND man! The way you explained I can answer hashmap even after death :D
@muchukundareddy5315
@muchukundareddy5315 2 жыл бұрын
Awesome.
02. Equals and HashCode Contract & Different Variations
11:19
WebEncyclop Tutorials
Рет қаралды 51 М.
She ruined my dominos! 😭 Cool train tool helps me #gadget
00:40
Go Gizmo!
Рет қаралды 53 МЛН
Backstage 🤫 tutorial #elsarca #tiktok
00:13
Elsa Arca
Рет қаралды 43 МЛН
ТАМАЕВ vs ВЕНГАЛБИ. Самая Быстрая BMW M5 vs CLS 63
1:15:39
Асхаб Тамаев
Рет қаралды 4,6 МЛН
Hot Ball ASMR #asmr #asmrsounds #satisfying #relaxing #satisfyingvideo
00:19
Oddly Satisfying
Рет қаралды 51 МЛН
Java 8 to 18: Most important changes in the Java Platform
31:24
How HashMap works in Java? With Animation!! whats new in java8 tutorial
15:29
Ranjith ramachandran
Рет қаралды 1 МЛН
Java 8 Streams | map () & flatMap() Example | JavaTechie
15:37
Java Techie
Рет қаралды 205 М.
Map and HashMap in Java with Internal Working- Interview Question
19:27
Daily Code Buffer
Рет қаралды 28 М.
Map and HashMap in Java - Full Tutorial
10:10
Coding with John
Рет қаралды 538 М.
She ruined my dominos! 😭 Cool train tool helps me #gadget
00:40
Go Gizmo!
Рет қаралды 53 МЛН