function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
srinu jsrinu j 

Question on List and Set

Hi friends, I have a small dooubt. List is Ordered, Set is Unordered. What is the meaning of ordered and unordered.Please can anybody say?
Best Answer chosen by srinu j
Chandra Sekhar CH N VChandra Sekhar CH N V
List is a ordered collection, meaning that each element is stored in a specific position. An element can be accessed using its location (also called as Index). The index always starts with 0.

A set is an unordered collection. Elements in a set are not stored in a specific order and you cannot access an element using an index.

All Answers

Chandra Sekhar CH N VChandra Sekhar CH N V
List is a ordered collection, meaning that each element is stored in a specific position. An element can be accessed using its location (also called as Index). The index always starts with 0.

A set is an unordered collection. Elements in a set are not stored in a specific order and you cannot access an element using an index.
This was selected as the best answer
srinu jsrinu j
Thank you