Loading…

What do you mean by Ordered and Sorted in collections in Java?

In an ordered collection, the elements have a specific order, which is independent of the value. For example a List.

In the sorted collection, the collection has an order, and the order depends on the value of the element. For example a SortedSet.

Developers should know everything about core java programs before their next interview.

Suggest An Answer

No suggestions avaliable!

Latest post from Core Java interview questions

Ask Question