Examveda
Examveda

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

A. A `Set` allows duplicate elements, while a `List` does not

B. A `List` is unmodifiable, while a `Set` is modifiable

C. A `List` allows duplicate elements, while a `Set` does not

D. A `Set` is indexed, while a `List` is not

Answer: Option C


This Question Belongs to Java Program >> Collections Framework In Java

Join The Discussion

Related Questions on Collections Framework in java