Java Interview Questions and Answers on HashMap

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

Siva Reddy

Siva Reddy

7 жыл бұрын

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.

Пікірлер: 27
@deepak123417
@deepak123417 7 жыл бұрын
Please describe load factor and issues with re hashing and how it can be resolved in details
@priyaal8153
@priyaal8153 3 жыл бұрын
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 3 жыл бұрын
Thanks Priya. Please refer our KZbin channel to your friends circle as it might be helpful for them. Happy learning.
@rajanpunniamoorthy3452
@rajanpunniamoorthy3452 3 жыл бұрын
Well presented about HashMap. Good work Reddy.
@SivaReddyJavaTechie
@SivaReddyJavaTechie 3 жыл бұрын
Thanks Rajan. Please share our KZbin Channel with your friends and colleagues as it may be helpful for them. Happy Learning.
@SuprajaYKM
@SuprajaYKM 6 жыл бұрын
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.
@ankittiwary3712
@ankittiwary3712 7 жыл бұрын
sir please upload tutorial on contract between equals and hashcode method with example
@pratikshajadhav7297
@pratikshajadhav7297 6 жыл бұрын
Can you please explain collision concept and handling in HashMap
@sandeepmankena363
@sandeepmankena363 7 жыл бұрын
thank bro
@abhishekcooldude100
@abhishekcooldude100 4 жыл бұрын
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 4 жыл бұрын
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.
@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.
@RoopkishorPandeyji
@RoopkishorPandeyji 6 жыл бұрын
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 6 жыл бұрын
kzbin.info/www/bejne/r4qXloytr619aas
@RoopkishorPandeyji
@RoopkishorPandeyji 6 жыл бұрын
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.
@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
How HashMap Works Internally?
20:58
Siva Reddy
Рет қаралды 72 М.
When to use Abstract class and When to use Interface in Java
20:04
World’s Deadliest Obstacle Course!
28:25
MrBeast
Рет қаралды 155 МЛН
MEU IRMÃO FICOU FAMOSO
00:52
Matheus Kriwat
Рет қаралды 44 МЛН
Java Interview Q&A on Multi-Threading
34:16
Siva Reddy
Рет қаралды 82 М.
Top 25 Microservice Interview Questions Answered - Java Brains
39:54
HashTable vs HashMap vs Concurrent HashMap all kinds of Map implementations
41:26
Core Java Interview Question and Answers for Freshers  Session1
27:38
Java Exception Handling Interview Questions and Answers
32:21
in28minutes - Get Cloud Certified
Рет қаралды 91 М.
equals and hashcode contract in Java
10:51
Siva Reddy
Рет қаралды 12 М.
Hibernate Interview questions and answers
45:21
Siva Reddy
Рет қаралды 82 М.