Collection Framework in Java - #18 - HashSet Class Overview | Key Points to Note

preview_player
Показать описание
In this video, we will take a look at the HashSet class overview.

Following are few key points to note about HashSet in Java -
- HashSet cannot contain duplicate values.
- HashSet allows null value.
- HashSet is an unordered collection. It does not maintain the order in which the elements are inserted.
- HashSet internally uses a HashMap to store its elements.
- HashSet is not thread-safe. If multiple threads try to modify a HashSet at the same time, then the final outcome is not deterministic. You must explicitly synchronize concurrent access to a HashSet in a multi-threaded environment.

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

Which technology is mostly used to secure Microservices OKTA with SSO, keycloak or JWT in industry or how its decided which one to use

shubhamswaraj