List 和 Set 的区别

答案解析

List有序可重复,支持索引访问;Set无序不可重复,元素唯一。常见实现:ArrayList、LinkedList和HashSet、TreeSet等。