您的位置:首页 > 编程语言 > Java开发

Java Collection Framework

2014-04-18 04:55 253 查看
Java collection framework: is a set of classes and interfaces that implement commonly reusable collection data structures. 

All collections frameworks contain the followings:

Interfaces: there are abstract data types that represent collections. 

Implementations, ie Classes:concrete implementations of the collection interfaces. In essence, they are reusable data structure.

Algorithms: there are the method that perform useful computations. 

List in java provides ordered and indexed collection which may contain duplicates.(ArrayList, LinkedList)

Set provides an unordered collection of unique objects. Sets do not allow duplicates. (linkedHashSet, TreeSet and HashSet)

Map provides a data structure based on key value pare and hashing. 

All three List, Set and Map are interface in Java. and there are many concrete implementation of them are available in collection API. 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息