). Which of the following statements is true?
A: HashSet uses HashMap for its implementation,
B: HashMap uses HashSet for its implementation.
c: Neither of them uses the other for its implementation.
Answers
Answered by
0
Answer:
A is the correct statement
Answered by
0
Answer:
The answer is HashSet uses HashMap for its implementation (option A).
Explanation:
- HashMap Stores elements in form of key-value pair i.e each element has its corresponding key which is required for its retrieval during iteration.
- HashSet stores only objects no such key-value pairs are maintained.
Similar questions