01. Internal Working of HashMap & Java-8 Enhancement

01. Internal Working of HashMap & Java-8 Enhancement

WebEncyclop Tutorials

3 года назад

105,743 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@evgenii550
@evgenii550 - 09.06.2023 15:07

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

Ответить
@dipalijibhakate2815
@dipalijibhakate2815 - 27.01.2024 05:37

A great explanation ,one of the best video till now i watched on Hashmap internal...Thank you for sharing a such content😊

Ответить
@abdulrashidsinancu1630
@abdulrashidsinancu1630 - 21.01.2024 21:31

Good lecture. Helpful

Ответить
@AkhileshKumar-li6me
@AkhileshKumar-li6me - 20.01.2024 15:43

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.

Ответить
@ukj6795
@ukj6795 - 05.01.2024 13:13

amazing explanation, thank you

Ответить
@armanchaudhari4767
@armanchaudhari4767 - 02.01.2024 11:21

One of the best tutorial for this topic

Ответить
@kartikbadnorejain4708
@kartikbadnorejain4708 - 23.12.2023 13:51

Super Awesome. This is what I was looking for.

Ответить
@vishalgaikwad873
@vishalgaikwad873 - 02.12.2023 06:18

Thanks, It's really neat & clear explanation🎉🎉

Ответить
@thevagabond85yt
@thevagabond85yt - 20.10.2023 20:43

xactly what the doctor ordered.

Ответить
@deeptichaudhary1610
@deeptichaudhary1610 - 26.09.2023 22:02

Very nice explanation.Thank you

Ответить
@shraddhasangole3636
@shraddhasangole3636 - 28.07.2023 08:25

Sir plz provides notes

Ответить
@subairkoppam1840
@subairkoppam1840 - 30.06.2023 21:21

very good explanation

Ответить
@user-nm7pw8tl8o
@user-nm7pw8tl8o - 12.06.2023 08:24

very good explanation...

Ответить
@illinoska
@illinoska - 09.06.2023 15:02

Very easy to understand. Thank you!

Ответить
@user-wg5rd6rl1f
@user-wg5rd6rl1f - 26.05.2023 07:41

Can you make videos on spring and springboot

Ответить
@user-wg5rd6rl1f
@user-wg5rd6rl1f - 26.05.2023 07:40

Very nice explanation

Ответить
@nikhilsai1351
@nikhilsai1351 - 24.05.2023 11:46

Excellent explanation worth a watch🔥🔥

Ответить
@iTECHup
@iTECHup - 23.05.2023 10:04

you can use a primitive type as a key in a HashMap. When you add a primitive type as a key, Java will automatically wrap the primitive value in an object of the corresponding wrapper class

Ответить
@a_r_c_h_a_n_a
@a_r_c_h_a_n_a - 20.05.2023 16:17

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..........!!!🤩

Ответить
@bpssingh5365
@bpssingh5365 - 12.05.2023 08:37

well explained... good one

Ответить
@ritamishra3626
@ritamishra3626 - 05.05.2023 11:49

Awesome explanation Sir....

Ответить
@kajalChaudhari_24
@kajalChaudhari_24 - 21.04.2023 20:55

This video is very helpful to me and the example with the diagrams clears all doubts , bt still having one doubt how can I calculate the index using given formula? Can you please describe it?

Ответить
@SaravanaKumar-yh2pf
@SaravanaKumar-yh2pf - 13.04.2023 21:03

Thank you for the clear explanation

Ответить
@user-lr7cg3yk7p
@user-lr7cg3yk7p - 13.04.2023 09:36

Great session, neat and good explanation. Thank you

Ответить
@skm9786
@skm9786 - 05.04.2023 12:10

Very cool keep it up

Ответить
@Joyddep
@Joyddep - 03.03.2023 15:34

Thank you for the explanation!

Ответить
@mahendrabisht9253
@mahendrabisht9253 - 26.02.2023 08:27

Awesome Explanation

Ответить
@krmanish472
@krmanish472 - 31.01.2023 07:41

Thanks for making life easier

Ответить
@desiengineerashish4908
@desiengineerashish4908 - 12.01.2023 15:45

Thanks man! You made it far easy...

Ответить
@gauravraut3414
@gauravraut3414 - 08.01.2023 11:06

your explanation is great . try to make more videos on java .

Ответить
@TechieMit
@TechieMit - 17.12.2022 15:23

Nice video

Ответить
@PadmaPonnu
@PadmaPonnu - 11.12.2022 21:55

Best video I have come across....It would be great if you can add tutorials on multi-threading and concurrency topics....

Ответить
@nayanagouda3767
@nayanagouda3767 - 17.11.2022 07:47

Tysm for simply explanation... I have seen much vdo bt this is the best vdo.. Tq once again..🙏🏻

Ответить
@jagrutipatil7834
@jagrutipatil7834 - 12.11.2022 08:24

Thank you so much sir....🙏

Ответить
@satyamsc
@satyamsc - 09.11.2022 11:04

simple explain for tricky topic, easily understandable.. nice.. 👍

Ответить
@ravindrabaranjalekar1068
@ravindrabaranjalekar1068 - 01.11.2022 06:15

Awesome❤

Ответить
@amrutapathak6802
@amrutapathak6802 - 13.10.2022 10:44

Bhai Kya explain Kiya hai..Thank you so much...Can you please create video on ConcurrentHash map, Difference between Hashmap, Synchronized Hashmap and Concurrent hashmap

Ответить
@anandankishore
@anandankishore - 12.10.2022 16:39

Nice Explanation

Ответить
@onetechlab8697
@onetechlab8697 - 11.10.2022 12:13

could you please elaborate more on how equal hashcode strings will be saved in same buckets ?
You have mentioned compareTo () method will be use. But more detailed explanation might help. Thank you.

Ответить
@azadgavit7403
@azadgavit7403 - 07.10.2022 06:42

that was some explaination 😎

Ответить
@dnyaneshtathode5511
@dnyaneshtathode5511 - 14.09.2022 11:46

Good going mate. Keep it up.

Ответить
@atulsharma9241
@atulsharma9241 - 07.08.2022 19:41

Can uh make more videos on Java

Ответить
@k283535
@k283535 - 07.08.2022 12:47

According to keys, pair is searched, not as per Bucket number
Hence, one bucket can have many pairs linked by LinkedList

Ответить
@lavanyapadma3024
@lavanyapadma3024 - 04.08.2022 19:18

Best Explanation ever…have seen so many videos but this is the best, Thank you 🙏

Ответить
@mohammadsadeghi2353
@mohammadsadeghi2353 - 03.08.2022 15:14

You are awesome at explaining complex topics. Thank you.

Ответить
@swetha3422
@swetha3422 - 30.07.2022 16:52

How to find bucket index plz explain...

Ответить
@kumarprakash93
@kumarprakash93 - 29.07.2022 21:12

Appreciated the way you explained the concept. Thank you.

Ответить
@ayyappabudihal291
@ayyappabudihal291 - 27.07.2022 14:03

Good explanation 👍

Ответить
@AzeriFire
@AzeriFire - 10.06.2022 17:39

I have never seen such detailed tutorial about the hashmap! I want to thank you, even I knew how it works.

Ответить
@shrutithanekar3464
@shrutithanekar3464 - 07.06.2022 21:15

Thank you so much for this video I was actually able to visualise internal structure of the hashmap

Ответить