Multiple choice

How many constructors are there in TreeSet?

  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 TreeSet. These are :-TreeSet()TreeSet(c : Collection)TreeSet(c : Comparator)TreeSet(s : SortedSet ). So, this is correct answer.