What is the difference between Set and List?

Asked 1 years ago, Updated 1 years ago, 104 views

What is the difference between Set and List in Java?

list java set

2022-09-22 10:55

1 Answers

List is a structure with an order of elements. And Set does not allow duplication of elements and has no order.


2022-09-22 10:55

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.