Java Interview Questions and Answers on HashMap

  Рет қаралды 21,145

Siva Reddy

Siva Reddy

Күн бұрын

Please check out my blog(learnsimple.in) for more technical videos.
For any java/full stack/DevOps/developer/lead positions related mock interviews assistance/Guidance/support, you can reach out me @ sivajavatechie5@gmail.com
This session helpful for the candidates preparing for the Core java interview. In this session, I explained java interview questions and answers for Map Implementations(HashMap, LinkedHashMap, TreeMap, ConcurrentHashMap, Collections.synchronizedHashMap, WeakHashMap) and when to use which map Implemenations with Examples.

Пікірлер: 25
@priyaal8153
@priyaal8153 4 жыл бұрын
Sir your explaination is crystal clear.. I watched so many videos it was too confused I thought no one can make me understand this concept.. Bt I'm wrong you broke that.. Hats off sir..
@SivaReddyJavaTechie
@SivaReddyJavaTechie 4 жыл бұрын
Thanks Priya. Please refer our KZbin channel to your friends circle as it might be helpful for them. Happy learning.
@deepak123417
@deepak123417 7 жыл бұрын
Please describe load factor and issues with re hashing and how it can be resolved in details
@ankittiwary3712
@ankittiwary3712 8 жыл бұрын
sir please upload tutorial on contract between equals and hashcode method with example
@abhishekcooldude100
@abhishekcooldude100 5 жыл бұрын
Hi Sir, its been an excellent session for interview questions, however can you upload tutorials for spring interview questions for experienced professionals too.
@SivaReddyJavaTechie
@SivaReddyJavaTechie 5 жыл бұрын
Hi Abhishek, You can find spring related Interview Q&A @ kzbin.info/www/bejne/hXmbhJyCjc6ChM0. You can go through our KZbin channel playlists, you will find more useful videos on various topics for interviews. Please refer our KZbin channel to your friends circle as it might be helpful for them. Happy Learning.
@pratikshajadhav7297
@pratikshajadhav7297 6 жыл бұрын
Can you please explain collision concept and handling in HashMap
@SuprajaYKM
@SuprajaYKM 7 жыл бұрын
In concurrent hashmap suppose one segment is locked for writing data, and user is accessing data from concurrent hashmap at same time then will user loose data from locked segment.
@maheshreddy9351
@maheshreddy9351 7 жыл бұрын
Hi sir, If we add one entry to hashMap,On which basis it will be inserted into bucket i mean how it choose the particular index. Thanks in advance.
@RoopkishorPandeyji
@RoopkishorPandeyji 7 жыл бұрын
Hi Sir, I am looking for internal implementation of Hashmap, can u please explain. provide link if you already have release the video.
@SivaReddyJavaTechie
@SivaReddyJavaTechie 7 жыл бұрын
kzbin.info/www/bejne/r4qXloytr619aas
@RoopkishorPandeyji
@RoopkishorPandeyji 7 жыл бұрын
thank you shiva but i was looking for explanation of internal implementation of get put and remove methods. what to write inside put if i have to write my own put method
@unbiased-review
@unbiased-review 6 жыл бұрын
Very well explained sir
@SivaReddyJavaTechie
@SivaReddyJavaTechie 6 жыл бұрын
Thanks.
@princeverma4938
@princeverma4938 7 жыл бұрын
Can we use custom object as a key of hadhmap
@SivaReddyJavaTechie
@SivaReddyJavaTechie 7 жыл бұрын
Hi Prince, Yes we can use custom object as a key to HashMap but you need to override the hashcode and equals methods.
@shivanaikrachanaikar2843
@shivanaikrachanaikar2843 7 жыл бұрын
Hi , Hashmap is accepting the 2 null values but you said it will allow only one null value so please clarify
@SivaReddyJavaTechie
@SivaReddyJavaTechie 7 жыл бұрын
HashMap allows only one null value as key. Even though you add multiple null values as keys, it will override the early null key value and when you print the hashMap you will see only one key with null value in the HashMap.
@melodyjunction6908
@melodyjunction6908 6 жыл бұрын
Hi..sir can assign same value for multiple keys?
@amitdeshmukh266
@amitdeshmukh266 6 жыл бұрын
sanmati ayatawad, yes can assign same value to multiple keys
@SivaReddyJavaTechie
@SivaReddyJavaTechie 6 жыл бұрын
You can assign mutile null values but it will accept only one null value as a key
@monissiddiqui1529
@monissiddiqui1529 5 жыл бұрын
Hashmap custom value if put then how it work
@SivaReddyJavaTechie
@SivaReddyJavaTechie 5 жыл бұрын
If you want to add custom value then you need to override equals and hashcode in class. Hashmap works based on your custom logic for equals and hashcode when you add custom (user defined object) as key.
@monissiddiqui1529
@monissiddiqui1529 5 жыл бұрын
@@SivaReddyJavaTechie sir can u give any example today interviewer had ask me this quest in Accenture
@sandeepmankena363
@sandeepmankena363 7 жыл бұрын
thank bro
Java Interview Q&A on Exception Handling
16:25
Siva Reddy
Рет қаралды 20 М.
How HashMap Works Internally?
20:58
Siva Reddy
Рет қаралды 72 М.
ТЫ В ДЕТСТВЕ КОГДА ВЫПАЛ ЗУБ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 4 МЛН
Hoodie gets wicked makeover! 😲
00:47
Justin Flom
Рет қаралды 127 МЛН
HashTable vs HashMap vs Concurrent HashMap all kinds of Map implementations
41:26
Core Java Interview Question and Answers for Freshers  Session1
27:38
Hibernate Interview questions and answers
45:21
Siva Reddy
Рет қаралды 82 М.
Java Exception Handling Interview Questions and Answers
32:21
in28minutes
Рет қаралды 92 М.
When to use Abstract class and When to use Interface in Java
20:04
Top 25 Microservice Interview Questions Answered - Java Brains
39:54