How Treeset implementation maintains unique elements in it?

How an Treeset maintains the unique element? Which algorithm does it use?
What is the advantages over doing the same using the Arraylist manually?

Questions by shreekarjain

Showing Answers 1 - 2 of 2 Answers


  • Feb 20th, 2013

It uses Red-Black tree alogorithm.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.


Related Answered Questions


Related Open Questions