What is the primary characteristic of a `TreeSet` in Java?
A `TreeSet` is a NavigableSet that stores elements in sorted order, without allowing duplicates.
Exactly! You've captured the primary characteristic of `TreeSet`.
Can you explain how `TreeSet` ensures that elements remain sorted? Does it use any specific data structure?