If I'm not wrong ,it will not create another linked list ..it will just create new node and will make it was next
@SeleniumExpress5 жыл бұрын
That is correct, I said that by mistake.Thank you for correcting me.😊 Please watch the next video of the playlist.I have given a complete code walkthrough. kzbin.info/www/bejne/nITNqZuFjrV1iKs
@naturelove15255 жыл бұрын
@@SeleniumExpress thank you ...
@gayatriyeole17954 жыл бұрын
Very nice explanation... Can u plz tell me how to calculate hashcode and index properly. Becoz u radomly told 1111112.Internally how it is calculated plz tell.
@sagarkorde2094 жыл бұрын
@@gayatriyeole1795 durga sir ko refer karo
@honeyverma65494 жыл бұрын
durga sir ki kaafi purani video h ab version bdl gy h java ke but Durga sir is like god of java
@BuffaloCanCode6 жыл бұрын
2 Things I want to add (correct) here 1. When you say a link-list will be added, actually it would be a node added into a particular linkedlist. 2. map.put("null", 4) is not equal to map.put(null, 4). In case of map.put("null", 4) hashcode will be calculated as normal String. What you explained for 0th index is map.put(null, 4).
@akshayjeengar257610 ай бұрын
Watched this video yesterday before my Interview and Luckily I was asked to implement my own hashMap. My code worked in the first attempt. Kudos to you explaination.
@ajbchannel97192 жыл бұрын
OMG this guy is very nice. he helped to understand any code of java. thank you! if you can please give as more please
@basavarajnv10174 жыл бұрын
Now I really understood how hashmap works internally...u r really amazing brother.great explanation.🙏🙏👍
@prafulsurve31906 жыл бұрын
Nice video. In case of a collision if we add the new node to the beginning of the LinkedList in the bucket then we can still achieve O(1) time complexity for put() method instead of O(n). The much elegant solution to improve the hashmap collision performance would be to use self-balancing tree data structure so in the worst case traversal would be O(log n).
@irynasherepot98824 жыл бұрын
Yeah, I think Java implementation updated it as well
@praveenkumarc69484 жыл бұрын
Thank You so much after so many videos I have understood how it works and Successfully Subscribed❤️❤️❤️
@SeleniumExpress6 жыл бұрын
Hi guys, hope you are doing well !! below is the link to hashmap practical video kzbin.info/www/bejne/nITNqZuFjrV1iKs Have a nice time !!
@anjumohanan31496 жыл бұрын
Easy to understand
@prashanthkr54526 жыл бұрын
Osm bro
@vamshikrishna58016 жыл бұрын
please explain how to retrieve null key
@shibaneepattanayak89916 жыл бұрын
It's map.put(null,10)...not like map.put("null",10)
@shraddhajayaraman5 жыл бұрын
Hi Please stop the fake accent.. I am sure your original accent is better than that. useful video
@ashrithareddyrondla98824 жыл бұрын
Preparing for interviews and found this very useful thanks a ton!!!!!!!!!😁👍🙏
@sumasuripaka3 жыл бұрын
Explanation 👌👌👌sir...u look like Telugu movie hero Aadhi. ....s/o Sai Kumar
@ramesh22kvr4 жыл бұрын
you are explaining very clearly with diagrams.i have not seen like this in any other channels
@humaali46362 жыл бұрын
Godly tutorial... Thanks alot sir. 👏👏👏
@MrSubandrio3 жыл бұрын
i remember that. when i was young, i make simple like a database, iam using link list, exactly iam using doubly link list .. with 'prev' and 'next' node, good job bro !.
@anuragbharti37734 жыл бұрын
Great explanation. I surprised who disliked the video.
@AnilKumar-nq5lp3 жыл бұрын
I got a new job because of this tutorial, Thanks much!!!
@priyankasinghai9534 жыл бұрын
Very Nice Explaination.....Thank You very much for such nice videos.....
@kumar556633 жыл бұрын
excellent explaination ...no words needed. please do more videos like this
@AnshiSohamiamazingworld3 жыл бұрын
Very well explained for hashMap internal working🙏
@dvoorganisation459 Жыл бұрын
Explained Really well in such a short video. Kudos! Really Prepared before giving Videos on KZbin. I can see good confidence in your presentation. Thanks a ton!
@sindhuchary6 жыл бұрын
aaa & aab are 2 different keys and hence the hash code will be different. Only the index could be the same and if so the second entry will be added to the linkedlist at that particular index (index 6 in this example). Now assume that I'm trying to put another value with the same key, aaa. Now the hashcode and the index of the current entry and that of the first entry at index 6 are the same. So the value that pass with the key aaa is overwritten. This is what happens when you try to put a value into a hashmap with an already existing key, as we all know the keys are to be unique otherwise the entry will be overwritten. Keep going! Best wishes!
@Sri_Gayatri_12 жыл бұрын
Your super most best trainer 😎
@varshachavan4714 жыл бұрын
Very Useful content you have provided Thank you so much for making thiss video ...my concepts cleared about hashmap
@meghatiwari52254 жыл бұрын
Thank you so much for very good way explained this topic with logic. It’s really helpful for anyone who wants to learn java. Thanks again.
@shaktimaan6934 жыл бұрын
it was epic moment when u explained about hash collision got gussbump . thak u sir
@satyaranjanpatra43804 жыл бұрын
Your teaching style is very excellent
@ShadowWalker6833 жыл бұрын
You have no idea how this video helped me. I have seen a bunch of other videos and the tutorials just make the concept much more complex. Thanks a bunch man! Keep up the good work.
@aniketbudbadkar1801 Жыл бұрын
Gr8 explained keep it up and also share java8 new features related videos
@ramesh22kvr4 жыл бұрын
i am following every video of yours
@mdnadimarif4 жыл бұрын
It's amazing way of explaining things. Big thumbs up
@pratapk.c12773 жыл бұрын
I was asked this question yesterday on interview and now i am watching it
@MicroServiceMan5 жыл бұрын
At end u told map.put("null",4) but it should be map.put(null,4) ... Means without double quotes.... Otherwise it will become string
@ramesh22kvr4 жыл бұрын
you are explaining very very good manner sir
@sudhirpadhy24923 жыл бұрын
Nice one !! Thanks Abhilash ..
@shreyasoni62233 жыл бұрын
Awesome explanation ... Thanks a lot!!
@deepchand5173 ай бұрын
By this I got concept internal working hashmao thank you
@SuruchiJaiswall4 жыл бұрын
Superb explanation 🙏
@SanjeevSingh-bo7em3 жыл бұрын
doing great work keep doing it.
@SriHariChukka12102 жыл бұрын
Great explanation 🙂
@marghe174.3 жыл бұрын
Finally I understood how is working
@ramesh22kvr4 жыл бұрын
finally found very good channel.thank you sir
@shwetasarangale15915 жыл бұрын
Very useful.Thanks a lot for such a wonderful and simple explanation
@asemreddy18673 жыл бұрын
Nice explanation.. Thank you ..!
@rajatgoyal14915 жыл бұрын
Nice briefing over internal implementation of HashMap
@kurabhakalyani7404 жыл бұрын
Your way of talking is super i love it nice explanation
@tindo00384 жыл бұрын
Nice explanation. THanks
@narendarb73085 жыл бұрын
Wow, it's amazing experience , now I understand that what exactly it is working internally..superb🙏
@pujabansal8105 жыл бұрын
I was never able to understand this topic. After watching your videos concepts are very cleared
@subhojitdas17274 жыл бұрын
Explained in a plain simple easily understandable way. Really helpful. Thank you!!
@psudhakarreddy65483 жыл бұрын
Good 👍
@Kajal_Kumari_Ojha5 жыл бұрын
I feel in the 6th node ...linked list of 1st will store the address of the next linked list and the address of the last LinkedList will be null as u have explained. Anyways Superb Explanation.
@HardikPatel-iw7ju5 жыл бұрын
Nice video for interview point of view.
@MinalShewale3 жыл бұрын
i did not understand much...but i liked the way you explained...
@sivaranjanis86056 жыл бұрын
Superb explanation, It's really very useful Thank you
@228900743 жыл бұрын
It's a nice video. Better to add how it checks if we added a duplicate key in the put method
@prasadp64746 жыл бұрын
Superb. Seriously your explanations are so good. Please publish more concepts.
@markokafor74324 жыл бұрын
Access to a linked list is only through the head. The second value will be placed at the head while the first value will be pushed to the new node. so your first node should contain aab and the second should be aaa. That is how insertion works in linked list. You have it the other way around
@jayakumar60915 жыл бұрын
Simple and very straight forward 😍😘
@asthagarg46143 жыл бұрын
Amazing video but I think you should also explain about 'rehashing' also. I have always watched this video for understanding the internal working of Hashmap but interviewer asked me about how Hashmap grows and I was unable to answer that question in detail.
@johnwilson39187 жыл бұрын
The 'hash(key) & (n - 1)' statement is a quicker equivalent to 'hash(key) % n' ; but with the caveat that the bucket size (n) is a power of 2 (ie. 2, 4, 8, 16, 32, 64, 128, 256 ....). If you convert each member of the latter set to binary and subtract one and peek at the binary bit pattern - you'll see why '&' works as 'MODULUS' in these instances.
@Rithus20203 жыл бұрын
Hi You did an execellent job.Crystal clear.Thanks for the video!
@kraju87605 жыл бұрын
Good sir.its very helpful to beginners.Thank u
@studymathematics32976 жыл бұрын
Bro superbly explained, You have cleared my doubts Please make a video on inheritance and explain all such posssible cases like Parent p = new child() Child c = new parent() Parent p = new parent() Child c = new child()
@SeleniumExpress6 жыл бұрын
Thanks, bhai..Glad you find it helpful. hope this video can help : kzbin.info/www/bejne/rKGZfpaumJZ2iq8 have a nice time !!
@javabava69286 жыл бұрын
Study Mathematics Child c=new Parent(); not possible because child class reference cannot hold parent class object. It will give compile time error.
@ricardotrejoruiz57763 жыл бұрын
For those who doesn't get what "hashcode & (n-1)" does is a simple logic and againts the binary value of 15 who is 1111. So this always will return a number between 0 and 15 and is the fast way to do it ;) So doesn't matter which value has the hascode for values greatter than 15, will allways do a logic AND againts zero.
@mansijain80923 жыл бұрын
Thank you so much for very good explanation. It is very helpful. Now could you please upload the vedio of hashset internal working?
@rajesh_mohantabandhuzim15695 жыл бұрын
Outstanding
@manva0076 жыл бұрын
thanks for sharing this video, while you are explaining collision, 2 different keys would never have the same hashcode, but they are doing mod operation same bucket number could come, and it would result into collision , it would be worth explaining the get operation, modules operation and also load factor
@SeleniumExpress6 жыл бұрын
Thanks Manish pointing these things out.. I have covered all the things in the follow up tutorials that you wanted me to cover.
@joyateechattopadhyay95104 жыл бұрын
nice explanation
@deviprasadpatnaik68376 жыл бұрын
Awesome explanation abhilash bhai
@SeleniumExpress6 жыл бұрын
Thanks bhai 👍
@sowmyarajendran48295 жыл бұрын
Thanks for the video.. Got this question in my thought works interview and got cleared
@dalbirsinghdhillon14293 жыл бұрын
good explanation.. in the case of the same hashcode, a linked list is created..containing same hashcode in each node of the LL.. first of all, it's same hashcode for each node and secondly, we can calculate this hashcode using key so why store it in each node.
@puru22cool6 жыл бұрын
good work..but instead of creating new linkedlist in case of hash collision , it just create a new node in the existing linkedlist and add the new element in it. Please correct this.
@harshinredzone5 жыл бұрын
Perhaps that depends on algorithm you use to implement hashmap
@KidJV5 жыл бұрын
correct, in his context he meant new node and also shows in his drawing but is saying creating new linkedlist.
@musamammadov49843 жыл бұрын
Thank you for your effort.
@manishgupta57403 жыл бұрын
well explained
@ARI-em6me5 жыл бұрын
Super way of teaching
@suchimn4776 жыл бұрын
first of all thank you bro,good explanation of internal mechanism ,if we have null key then what will be happen? And if I have the requirement like LinkedHashMap then how it will be stored internally?will you explain this mechanism.And one more thing don't be think negative.. the way of your explanation is good and the way of your looking is awesome(handsome) ...
@MuzaffarUmarjonov-v4l Жыл бұрын
superb bro
@pranjaliwagh49006 жыл бұрын
Great tutorial... appreciate your work...thank you..
@devulechutalks3 жыл бұрын
Nice class
@akware9775 жыл бұрын
Thank you so much to clear the question deeply in simple words
@siddhantjaiswal30776 жыл бұрын
Nice explanation sir😊
@priyankashinde14246 жыл бұрын
Thank you so much for explaining very well please keep it on your videos for another's concepts and practicals of java it will really help us.
@MegaSethi4 жыл бұрын
Great explanation!!
@Ishnavvulu6 жыл бұрын
Hi. I am glad that found your tutotial.It was very unique that providing and explaining with debugging so that the logically can understand the point.It was very nice.But please do the titorial on Threads ,Serilization please.
@goonerritz935 жыл бұрын
Very well explained! Thanks!
@SonalGupta256 жыл бұрын
Awesome Explanation!! just loved it..
@itisksn4 жыл бұрын
nice explanation, love it!!
@archigoel47176 жыл бұрын
Thanks for explaining. This is a very common interview question.
@SeleniumExpress6 жыл бұрын
Thanks for watching !!
@asad_mirza4 жыл бұрын
Thankyou for this video
@bharathan16086 жыл бұрын
Awesome video.. Salute to ur effort.. Now i clearly learnt about hashmap.. Thank u very much. Make more videos bro.
@yanamalaram39195 жыл бұрын
Super explanation
@भारत-झ7छ6 жыл бұрын
OSM Explaination Bro.......
@yeshwanthln76213 жыл бұрын
will different strings can create the same hash code, according to my knowledge new hash code might be created and we would get the same index by modulo operation.
@pawankpk83016 жыл бұрын
very good explanation bro..
@swapsure6 жыл бұрын
Explanation is apt !! Kudos !!
@pranayjakku96216 жыл бұрын
Boss I am big fan of u.bcz of u only I am learning some depth knowledge in java..cou ld you plus explain the excat difference between comparator and comparabale..tree set by default wt it is? Comparator how customized method
@ZenOfKursat6 жыл бұрын
nice teacher. everyone can learn but cannot be a teacher
@shivananadotari35726 жыл бұрын
Great..!!! Very Nice Explanation
@SeleniumExpress6 жыл бұрын
Thank you
@amoghkashyap93414 жыл бұрын
After hash function and some modular operation the index which it will generate always ranges from 0to15?
@santoshkumarsahoo11036 жыл бұрын
A great one.... Please make a video on Hibernate bootstraping 3.x,4.x and 5.x.... with internal explanation and with example...