#9 - How to compare two #HashMaps in Java - By Key-Value, By Value and By Keys

preview_player
Показать описание
In this video, I have explained How to compare two #HashMaps in Java - By Key-Value, By Value and By Keys.

~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:

Follow me on my Facebook Page:

Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:

Paid courses (Recorded) videos:

Рекомендации по теме
Комментарии
Автор

This is one of the most likely asked question in the interview, thanks Naveen for the topic 👍😊

SarangHoley
Автор

Thanks a lot Naveen for your explanation. it's very interresting.

wams
Автор

Really very nice explanation. Earlier I used to feel that Collections is too difficult for me. But now, you have made it very easy. Thanks a lot sir!!

riyarasanbhaire
Автор

Thanks naveen, you are really saver . You deserve 1 million subscriber

ankititp
Автор

Thank you, sir! I prepared my interview by watching your videos. And now I get my desired job, I will still watch your videos to practice and learn.

janetyang
Автор

All collection series are jus amazing.. very easy to follow, how much tough it is you make us understand in a easy way, I can only say God bless you

supriyassampath
Автор

This is nice way of comparing maps using Java collection. Your thought process is really appreciated.

sureshgarine
Автор

Crisp explanation. Thanks for efforts Naveen !

shilpashravge
Автор

Doubt: at 4.58 minutes, you told that while comparing two hashmaps, map3.put(3, "D"); is ignored. However, in the hash map intro video, you told that the latest same key will be taken at put method. It's confusing me

rajkumarm
Автор

In the last two examples it should be other way around. ArrayList allows duplicate whereas HashSet doesn’t allow duplicates

mdmazumder
Автор

Super 👌 👍 explanation, keep up good work Naveen bro

k.ravichandra
Автор

In a client interview, I got a similar question, it was a json whose values they wanted to mask or remove, can we solve it by converting it into a java object and further creating a new set, please enlighten if any idea

YantrikiThepowerofMachinesPune
Автор

I have one doubt
while comparing maps by values when duplicates are not allowed using arraylist :
when duplicates are not allowed we have to use hashSet bt ur using ArrayList
can u plz ans.

auvnphanikumar
Автор

Thank you for the video. Very much appreciated.

madhurpalsokar
Автор

thanku sir, thanku very much for great explanation.

_bhaveshvirale
Автор

last example should have other way around.ArrayList contains duplicates and set can not have duplicates.

sushantijena
Автор

Thanks Naveen. Could you please give details around the benefits we get if we join your channel?

nudrac
Автор

When trying to find extra keys, in your implementation what if map1 has more number of keys than map4 including all the keys of map4. Your code will not give correct result since you removed all keys of map1 so there will be none left.

MakeItStik
Автор

Hi Naveen, I think duplicates not allowed can be done by using HashSet and duplicates are allowed by using ArrayList. Please correct me If I'm wrong.

shivaprasadgurram
Автор

While comparing by values why map.values() method doesn't works?

safarshorts