Which of the following describes how HashSet stores elements in Java?
It uses a balanced binary tree to store elements.
It stores elements in a hash table using their hash codes.
It stores elements in a linked list for fast insertion.
It uses a stack-based structure for element management.
This question is part of this quiz :
Java Set and HashSet Classes