0 votes
1 view
in Java by (6.5k points)
Don't they mean the same thing?

1 Answer

0 votes
by (11.3k points)

No, they aren't the same thing:

  • The collection which is ordered can be iterated upon in specific order as required. The collection is based on the values that are added. 
  • When a collection is arranged in an ascending or descending order of the values stored within them, it is called sorted

Both categories of collections are widely used and have different implementations. If you're looking to learn java, consider using both for your projects and learn them as you progress in your learning path. 

Welcome to Intellipaat Community. Get your technical queries answered by top developers !