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.

BY Best Interview Question ON 13 Jan 2019