Java for Testers – Part 233 – HashMap

In this video, I have explained and practically demonstrated the below things on HashMap Class of Collections Framework in Java:

* HashMap class is the child class of Map interface
* Groups the objects as key value pairs
* Adding key value pairs using put() method and printing them
* Duplicate Keys are not allowed, if you try to insert any duplicate key the old value will get replaced with new value
* put() – returns null when there are no duplicate keys inserted and returns the…

Leave a Reply

Your email address will not be published. Required fields are marked *