Home Java Jdk6 Advantages and Disadvantages of the Collection Framework
Questions:Ask|Latest

 
 

Share on Google+Share on Google+

Advantages and Disadvantages of the Collection Framework

Advertisement
In this section, you will learn the advantages and disadvantages of Java Collection Framework. A collection is simply an object that groups multiple elements into a single unit. It is also called as a container sometimes.

Advantages and Disadvantages of the Collection Framework

     

In this section, you will learn the advantages and disadvantages of Java Collection Framework. A collection is simply an object that groups multiple elements into a single unit. It is also called as a container sometimes. It is used to store, retrieve, manipulate, and communicate aggregate data. Typically, it represents data items that form a natural group and allows duplicate elements while others do not. It consists of both ordered and unordered elements. 

Advantages of collections framework:

  1. We need not to learn multiple ad hoc collection APIs.
  2. It provides a standard interface for collections that fosters software reuse and also provides algorithms to manipulate them.
  3. Reduces the effort required to design and implement APIs by eliminating the need to produce ad hoc collections APIs.
  4. It provides useful data structures and algorithms that reduces programming effort due to which we need not to write them ourselves.
  5. It provides high-performance implementations of useful data structures and algorithms that increases the performance.
  6. Helps in establishing a common language to pass collections back and forth that provides interoperability between unrelated APIs.
  7. Collection is resizable and can grow.

Disadvantages of collections framework:

  1. It must cast to correct type.
  2. It can't be done compile-time type checking.
Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: June 22, 2007

Related Tutorials

Ask Questions?    Discuss: Advantages and Disadvantages of the Collection Framework   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
sachi panda
July 23, 2012
.net disadvantages

It is more coupled with the Microsoft Windows operating system and isimplemented only on Microsoft Windows successfully The managed .Net applications are somewhat slower to start and run than thetraditional Win32 applications. MS.NET desktop applications can run only on Microsoft Windows, Web basedapplications and web services can only be deployed on Microsoft Internet Information Server (IIS). c# Almost completely locks you into the Microsoft Platform. New language, so not a great deal of published free code yet.
L.Dana Ratna Kishore
September 30, 2013
Java

How to use in Real Time In Collection Framework.
DMCA.com