What is a TreeSet class?- TreeSet class is used to store large amount of data and uses tree for storage. - Items are stored in ascending order. - TreeSet sorts all data properly even if data are entered in a unsorted manner. - As the access and retrieval times fast the TreeSet becomes one of the best choice for storing large amounts of sorted information that can retrieved quickly. - The implementation is not synchronized.
|