HashMap Interview Questions | Interview Preparation

  Рет қаралды 7,903

Byte Programming

Byte Programming

Күн бұрын

Пікірлер: 19
@rahulkhandelwal46578
@rahulkhandelwal46578 3 жыл бұрын
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.
@manojmajumdar3815
@manojmajumdar3815 4 жыл бұрын
This channel definitely deserves more subscribers . All the questions asked in this Hashmap video are explained in-depth.
@ByteProgrammingVedantHarish
@ByteProgrammingVedantHarish 3 жыл бұрын
Much appreciated!
@pallavidesai1133
@pallavidesai1133 24 күн бұрын
Please make more videos for java..you are the best trainer. Thank you so much
@Hacks00145
@Hacks00145 3 жыл бұрын
Thanks for video.
@basavarajnv1017
@basavarajnv1017 4 жыл бұрын
Thanks so much Sir.. Really nice video ,very informative 🙏
@yoshitamahajan353
@yoshitamahajan353 4 жыл бұрын
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?
@ByteProgrammingVedantHarish
@ByteProgrammingVedantHarish 4 жыл бұрын
@Yoshita : Hashcode is used to calculate index. Try using permutation of hashcode all fields and multiply with 2 or 3 prime numbers.
@yoshitamahajan353
@yoshitamahajan353 4 жыл бұрын
@@ByteProgrammingVedantHarish thanks
@yoshitamahajan353
@yoshitamahajan353 4 жыл бұрын
Which underlying data structure does hashmap follows? Arrays or some other?
@ByteProgrammingVedantHarish
@ByteProgrammingVedantHarish 4 жыл бұрын
@Yoshita Hashmap internally has array and each node can contain linkedlist or tree.
@yoshitamahajan353
@yoshitamahajan353 4 жыл бұрын
@@ByteProgrammingVedantHarish thanks
@amscoder5262
@amscoder5262 3 жыл бұрын
The underlying data structure in case of HashMap is "Hashtable"
@theupdatetracker8598
@theupdatetracker8598 4 жыл бұрын
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 🙂
@ByteProgrammingVedantHarish
@ByteProgrammingVedantHarish 4 жыл бұрын
Sure! Stay tuned!
@indexOutOfBound
@indexOutOfBound 4 жыл бұрын
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")?
@ByteProgrammingVedantHarish
@ByteProgrammingVedantHarish 4 жыл бұрын
@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.
@1msubscribers214
@1msubscribers214 4 жыл бұрын
It will return shyam ... Value will override...
Collection Concepts & Interview Questions (Part-1)
20:59
Byte Programming
Рет қаралды 16 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
01. Internal Working of HashMap & Java-8 Enhancement
19:11
Ankit Wasankar
Рет қаралды 127 М.
Most Asked Hibernate Interview Questions | Interview Preparation
21:24
Byte Programming
Рет қаралды 10 М.
How HashMap works in Java? With Animation!! whats new in java8 tutorial
15:29
Ranjith ramachandran
Рет қаралды 1 МЛН
Map and HashMap in Java - Full Tutorial
10:10
Coding with John
Рет қаралды 630 М.
Serialization Interview Questions (3+ years )
9:39
Byte Programming
Рет қаралды 8 М.
#15 - Top 20 HashMap Interview Questions in Java || By Naveen AutomationLabs
27:35
Loops and Hash Maps Job Preparation Interview Question
15:55
Lets Build That App
Рет қаралды 21 М.
Java Interview Questions | Core Java
26:00
Byte Programming
Рет қаралды 26 М.