# Answer to Question #52116 in Java | JSP | JSF for Atish Bhavsar

Question #52116

Why List allows duplicates while Set not?

Expert's answer

**Answer.**A lot of programming constructions came frommath. The List structure is analogue of math structure call sequence and the

Set structure is analogue of math structure called set. In math. In math, a set

is a collection of distinct objects and sequence is just an enumerated

collection of objects.

Need a fast expert's response?

Submit orderand get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

## Comments

## Leave a comment