Core Java| JSP| Servlets| XML| EJB| JEE5| Web Services| J2ME| Glossary| Questions? | Software Development
 

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.

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.

                         

» View all related tutorials
Related Tags: c algorithm api ide collections orm ant data form interface framework software io multiple ip order vi collection tag int

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

1 comments so far (
post your own) View All Comments Latest 10 Comments:

Very useful code

Posted by sureshkumar.k on Monday, 12.24.07 @ 15:07pm | #43572

 
Tell A Friend
Your Friend Name

 

 
Recently Viewed
Software Solutions
Search Tutorials

 

 
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2008. All rights reserved.