The Java Tutorials have been written for JDK 8.Java教程是为JDK 8编写的。Examples and practices described in this page don't take advantage of improvements introduced in later releases and might use technology no longer available.本页中描述的示例和实践没有利用后续版本中引入的改进,并且可能使用不再可用的技术。See Java Language Changes for a summary of updated language features in Java SE 9 and subsequent releases.有关Java SE 9及其后续版本中更新的语言特性的摘要,请参阅Java语言更改。
See JDK Release Notes for information about new features, enhancements, and removed or deprecated options for all JDK releases.有关所有JDK版本的新功能、增强功能以及已删除或不推荐的选项的信息,请参阅JDK发行说明。
This section describes the Java Collections Framework.本节介绍Java集合框架。Here, you will learn what collections are and how they can make your job easier and programs better.在这里,您将了解什么是收藏,以及它们如何使您的工作更轻松、程序更好。You'll learn about the core elements interfaces, implementations, aggregate operations, and algorithms that comprise the Java Collections Framework.您将了解核心要素:接口、实现、聚合操作和算法:它构成了Java集合框架。
➤ Introduction介绍 tells you what collections are, and how they'll make your job easier and your programs better. 告诉您什么是集合,以及它们如何使您的工作更轻松,使您的程序更好。You'll learn about the core elements that comprise the Collections Framework: interfaces, implementations and algorithms.您将了解组成集合框架的核心元素:接口、实现和算法。
➤ Interfaces接口 describes the core collection interfaces, which are the heart and soul of the Java Collections Framework.描述核心集合接口,它是Java集合框架的核心和灵魂。You'll learn general guidelines for effective use of these interfaces, including when to use which interface.您将学习有效使用这些接口的一般准则,包括何时使用哪个接口。You'll also learn idioms for each interface that will help you get the most out of the interfaces.您还将学习每个接口的习惯用法,这些习惯用法将帮助您充分利用接口。
➤ Aggregate Operations聚合操作 iterate over collections on your behalf, which enable you to write more concise and efficient code that process elements stored in collections.代表您迭代集合,这使您能够编写更简洁高效的代码来处理集合中存储的元素。
➤ Implementations实现 describes the JDK's general-purpose collection implementations and tells you when to use which implementation. 描述JDK的通用集合实现,并告诉您何时使用哪个实现。You'll also learn about the wrapper implementations, which add functionality to general-purpose implementations.您还将了解包装器实现,它为通用实现添加了功能。
➤ Algorithms算法 describes the polymorphic algorithms provided by the JDK to operate on collections.描述JDK提供的用于对集合进行操作的多态算法。With any luck you'll never have to write your own sort routine again!幸运的是,你再也不用编写自己的排序例程了!
➤ Custom Implementations自定义实现 tells you why you might want to write your own collection implementation (instead of using one of the general-purpose implementations provided by the JDK), and how you'd go about it. 告诉您为什么要编写自己的集合实现(而不是使用JDK提供的一种通用实现),以及如何编写。It's easy with the JDK's abstract collection implementations!JDK的抽象集合实现非常简单!
➤ Interoperability互操作性 tells you how the Collections Framework interoperates with older APIs that predate the addition of Collections to Java. 告诉您集合框架如何与Java中添加集合之前的旧API进行互操作。Also, it tells you how to design new APIs so that they'll interoperate seamlessly with other new APIs.此外,它还告诉您如何设计新的API,以便它们能够与其他新API无缝地互操作。