Home / MCQ Bank / Computer
Computer Collections Framework In Java

What is the primary difference between a `List` and a `Set` in the Java Collections Framework?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • A `List` allows duplicate elements, while a `Set` does not

Related Computer Questions

Which of the following is not considered to be a basic element of an enterprise-class database system? How do you filter rows where a specific variable is not equal to a given value using filter() in dplyr? What is the purpose of the self parameter in Python methods? What is the name given to the 8-bit unit used for coding data? What is gutter margin in Ms Word?