The Java Tutorials have been written for 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.
SeeDev.java for updated tutorials taking advantage of the latest releases.
SeeJava Language Changes for a summary of updated language features in Java SE 9 and subsequent releases.
SeeJDK Release Notes for information about new features, enhancements, and removed or deprecated options for all JDK releases.
This section describes the Java Collections Framework. 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.
Introduction tells you what collections are, and how they'll make your job easierand your programs better. You'll learn about the core elements thatcomprise the Collections Framework:interfaces,implementationsandalgorithms.
Interfaces describes thecore collection interfaces, which are the heart and soulof the Java Collections Framework. You'll learn general guidelines foreffective use of these interfaces, including when to use which interface.You'll also learn idioms for each interface that will help you get the mostout 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'sgeneral-purpose collection implementationsand tells you when to use which implementation. You'll also learn aboutthewrapper implementations, which add functionality to general-purposeimplementations.
Algorithms describes thepolymorphic algorithms provided by the JDK to operateon collections. With any luck you'll never have to write your own sortroutine 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 theJDK), and how you'd go about it. It's easy with the JDK'sabstractcollection implementations!
Interoperabilitytells you how the Collections Framework interoperates with older APIs thatpredate the addition of Collections to Java. Also, it tells you how to designnew APIs so that they'll interoperate seamlessly with other new APIs.
About Oracle |Contact Us |Legal Notices |Terms of Use |Your Privacy Rights
Copyright © 1995, 2024 Oracle and/or its affiliates. All rights reserved.