TreeSet in Java : Tutorial and Interview Questions
TreeSet class implements the Navigable Set Interface and It creates a collection that uses a tree for storage. Now lets understand some features of TreeSet below. Features of TreeSet 1) TreeSet implements the Navigable Set Interface. 2) Underlying data structure of TreeSet is balanced tree. 3) Duplicate elements are not allowed. 4) Insertion order is …
TreeSet in Java : Tutorial and Interview Questions Read More »