How many null values can a TreeSet hold?

  1. One
  2. Unlimited
  3. None
  4. Two
Correct answer None

Explanation

TreeSet does not allow null if elements are compared using natural ordering.

Update: Admin added a tag on this question

Topics

By Admin · · 28 views