Java HashSet
Q1.
Which of the following is true about HashSet?
Q2.
Which data structure does HashSet use internally?
Q3.
What is the time complexity of add() and contains() in HashSet (average case)?
Q4.
What happens if you add a duplicate element in HashSet?
Q5.
Which of the following is not true about HashSet?