25. Collections in Java - Part4 | HashMap Internal Working in Java

preview_player
Показать описание
Chapters:
00:00 - Map Introduction
07:39 - HashMap Internal Design

➡️ Notes link:
Shared in the Member Community Post (If you are Member of this channel, then pls check the Member community post, i have shared the Notes link there)

➡️ Join this channel to get access to member only perks:
Рекомендации по теме
Комментарии
Автор

u make the concept as butter like smooth, next level teaching skills u have

codelogics
Автор

Hi, 1.5 year experienced engineer working in Service Based,
I went for an interview for a Hyderabad based startup he told me dude you have knowledge of a 5 year experienced guy.

Just follow this playlist you are good to go for any company
Fodd doge koi bhi java interview.
Tcs, infosys toh mazaak lagengey iske baad😂
Thanks bhai❤

tanujarora
Автор

Amazing explanation, learned this complex topic in a very easy way.

sushantbasak
Автор

Explained the same in Phonepe sde interview, cleared the round. Thanks bhai love u

ThrottleJourneys
Автор

Excellent explanation of HashMap. Thanks Man.. Really helpful :)

bhuvanakuppusamy
Автор

I always wondered that if we get only one map for all value, then how it's handled. Thanks for such wonderful explaination.🙌

ashishjaiswal
Автор

second time i watched the full video. It gives much confidence now. Thank You so much. And I request you to please make a video on multithreading and java 8 features.

zaheerabass
Автор

A small correction when we use (null) as key by default, it stores at index 0 of the bucket.

shivansamala
Автор

the explanation you do is awesome. I have some doubts

48:19
when you stored key 2 and value B, it should stored in the array first na ? you have written outside the index 3 block.

another doubt,
is there any order for load factor and treefy thresholding ? I think that as per the scenario either of these 2 could come to the action, am I right ?

name
Автор

Hi Shrayansh please also explain the internal working of concurrenthashmap..

ManjeetKaur-yy
Автор

I have 2 doubts.

1) 37:52 does it count the horizontal values also before doing re-hash for 13 nodes (16*0.75 + 1)? Suppose I have 13 nodes..
and 7 of them are forming a linkedList. Will it count it as a scenario when it have to do re-hash or does it wait till the
moment 13 nodes gets filled vertically?

2) If both load factor and treefyThreashold gets crossed at same time which one will heppen first?

At 26:59 here as per example the key 5 is producing two different hash values. I think that is a mistake.

krishnendughosh
Автор

Hi Shrayansh, just wanted to ask whether the HashMap is occupying contiguous memory when it is calculating hash for the particular size?

shubhamrajput
Автор

Thank You so much. Eagerly waiting for this..

zaheerabass
Автор

Hi Shrayansh, Thank you for the way you explain. One question is that when I can expect videos on java concurrency.

KishanKumar-nyzk
Автор

Hello Shryansh, really good details in a simpler way . I have one doubt. If in key we store any Object then we need to override that particular class's hashCode() method. But what will happen in case of coelution ? Then how we will compare while getting value? How we will compare hashValue of key and key object?

sayeedanawar
Автор

Hi Shrayansh,
Can you please add the full internal code implementation of the HashMap ? I was asked this in an interview..

AbhrajitChowdhury-nmim
Автор

Hey shreyansh, excellent video.
I have one request though, can you make a video on spring boot learning path and resources from which one can learn.
I am coming from python django background and recently giving the interviews and most of the time, the requirementb is of java and spring boot.
I know you will create a series on spring boot going forward but if you just make one video for now which covers the introduction and resources and what are important interview question then it will be immensely helpful

prashantgupta
Автор

Hi Shreyansh! Notes for this lecture is not uploaded?

akshitasrivastava
Автор

Hi shreyansh,
Thanks for amazing video!

I have a doubt on Java Date class.
sometimes we code across the code that uses different flavours of Dates.
someone uses Date, DateTime, ZonedTime - as per their comfort also hell lot of utilities that provides date and DateFormatter() its all rabbit hole now.

Assuming a new guy in java what are the best practices to use proper class of Date??
Is there any standard like given 100s of Date classes always use these 2 or 5 class??

ashishchoksi
Автор

Why other videos of java are only for members ? Some days ago they were public ??

sarkar_