Multiple choice

How many constructors are there of HashSet?

  1. 6

  2. 5

  3. 4

  4. 3

  5. 2

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This is the correct answer, there are 4 constructors of HashSet. These are :-HashSet()HashSet(c : Collection)HashSet(initialCapacity : int)HashSet(initialCapacity : int , loadFactor : float). So, this is correct answer.