Frankly speaking, I just searched Hashmap interview questions, though I was going with the first search result then suddenly I saw byte programming and I went here. Very informative videos on your channel.
@manojmajumdar38154 жыл бұрын
This channel definitely deserves more subscribers . All the questions asked in this Hashmap video are explained in-depth.
@ByteProgrammingVedantHarish3 жыл бұрын
Much appreciated!
@pallavidesai113324 күн бұрын
Please make more videos for java..you are the best trainer. Thank you so much
@Hacks001453 жыл бұрын
Thanks for video.
@basavarajnv10174 жыл бұрын
Thanks so much Sir.. Really nice video ,very informative 🙏
@yoshitamahajan3534 жыл бұрын
Hi what exactly do we have to write inside hashcode() method when creating our own custom class? As we need to override hashcode method so what content should be present inside hashcode if we have to write the content inside hashcode() method?
@ByteProgrammingVedantHarish4 жыл бұрын
@Yoshita : Hashcode is used to calculate index. Try using permutation of hashcode all fields and multiply with 2 or 3 prime numbers.
@yoshitamahajan3534 жыл бұрын
@@ByteProgrammingVedantHarish thanks
@yoshitamahajan3534 жыл бұрын
Which underlying data structure does hashmap follows? Arrays or some other?
@ByteProgrammingVedantHarish4 жыл бұрын
@Yoshita Hashmap internally has array and each node can contain linkedlist or tree.
@yoshitamahajan3534 жыл бұрын
@@ByteProgrammingVedantHarish thanks
@amscoder52623 жыл бұрын
The underlying data structure in case of HashMap is "Hashtable"
@theupdatetracker85984 жыл бұрын
Very nice sir..Very informative.. Please explain utilzing the custom key part, where we need to override equals hashcode methods in detail(example) if possible ..and please make one vid on concurrency and concurrent collections.. Thanks alot 🙂
@ByteProgrammingVedantHarish4 жыл бұрын
Sure! Stay tuned!
@indexOutOfBound4 жыл бұрын
If we do these in the hashmap--- hm.put("1","Ram"); hm.put("1",Shyam); Then 1 will hold Ram/Shyam ? and what will be hm.get("1")?
@ByteProgrammingVedantHarish4 жыл бұрын
@Vishal Keys are unique in java. hm.put("1", "Ram") => hashmap output :{1 = Ram} hm.get("1") => Ram hm.get(1) => null //key is int, no value present for this key String putVal = hm.put("1", "Shyam") => hashmap output : {1=Shyam} hm.get("1") => Shyam hm.get(1) => null //key is int, no value present for this key putVal value => Ram Hope it helps.