#11 - Different ways of creating HashMap in Java
ฝัง
- เผยแพร่เมื่อ 6 พ.ย. 2024
- In this video, I have explained what are the different ways of creating HashMap in Java using JDK8 and JDK 9.
~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
www.youtube.co...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
t.me/joinchat/...
Paid courses (Recorded) videos:
naveenautomati...
For Java & Selenium - naveenautomatio...
For API (Manual + Automation) - naveenautomatio...
Really appreciate your knowledge, and the way you present the topics. Thank you so much for all your efforts naveen.❤
Map m1 = new HashMap(Map.of(1, "A", 2, "B", 3, "C"));
This way we can create Map which is mutable.
If the Map is mutable we can able to do initialization and deletion after the declaration right.... When it's immutable we cannot add the object inside the map know... Then can you please let me understand the difference between simpleEntry() and simpleImmutableEntry() of stream class.? Both have done the same know...
Why would I need an empty map??
Is Map.of(K,V....) also immutable?
Where we can use this hashmap?
Where is empty map used??
Naveen, I have learnt a lot from your videos but lately i feel that you are just reciting and your videos seem to be a one sided dialogue which is becoming really boring. Please use some animations & some other tools to make the videos more interesting and curiosity driving. As an online educator, i feel you should.