The Java Tutorial: A Short Course on the Basics (5th Edition) (Java Series) by Zakhour Sharon Biocca & Kannan Sowmya & Gallardo Raymond

The Java Tutorial: A Short Course on the Basics (5th Edition) (Java Series) by Zakhour Sharon Biocca & Kannan Sowmya & Gallardo Raymond

Author:Zakhour, Sharon Biocca & Kannan, Sowmya & Gallardo, Raymond [Zakhour, Sharon Biocca]
Language: eng
Format: epub, pdf
Publisher: Pearson Education
Published: 2013-02-27T00:00:00+00:00


Benefits of the Java Collections Framework

The Java Collections Framework provides the following benefits:

• Reduced programming effort. By providing useful data structures and algorithms, the collections framework frees you to concentrate on the important parts of your program rather than on the low-level “plumbing” required to make it work. By facilitating interoperability among unrelated APIs, the Java Collections Framework frees you from writing adapter objects or conversion code to connect APIs.

• Increased program speed and quality. This collections framework provides high-performance, high-quality implementations of useful data structures and algorithms. The various implementations of each interface are interchangeable, so programs can be easily tuned by switching collection implementations. Because you’re free from the drudgery of writing your own data structures, you’ll have more time to devote to improving programs’ quality and performance.

• Interoperability among unrelated APIs. The collection interfaces are the vernacular by which APIs pass collections back and forth. If a preexisting network administration API furnishes a collection of node names and your graphical user interface (GUI) toolkit expects a collection of column headings, the two APIs will interoperate seamlessly, even though they were written independently.

• Reduced effort to learn and to use new APIs. Many APIs naturally take collections on input and furnish them as output. In the past, each such API had a small sub-API devoted to manipulating its collections. There was little consistency among these ad hoc collection sub-APIs, so you had to learn each one from scratch, and it was easy to make mistakes when using them. With the advent of standard collection interfaces, the problem went away.

• Reduced effort to design new APIs. This is the flip side of the previous advantage. Designers and implementers don’t have to reinvent the wheel each time they create an API that relies on collections; instead, they can use standard collection interfaces.

• Increased software reuse. New data structures that conform to the standard collection interfaces are by nature reusable. The same goes for new algorithms that operate on objects that implement these interfaces.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.