Collections in Java: HashSet Concept explanation in Detail with examples

preview_player
Показать описание
This video explain what is HashSet , when to use it and how to implement using String objects and user defined objects in collections
Рекомендации по теме
Комментарии
Автор

please add equals and hashcode implementations to the custom object to depict the correct bahavior

nitinlodhe
Автор

What happen if I will add
Employee emp5 = new Employee (104, "sivareddy4");

Duplicate value will show in console or not??

deviprasadpatnaik