Benefits of the Java collection framework

Collection framework  provides flexibility,
performance, and robustness.

  • Polymorphic algorithms – sorting, shuffling, reversing, binary search etc.
  • ƒSet algebra- such as finding subsets, intersections, and unions between objects.
  • ƒPerformance- collections have much better performance compared to the older Vector and Hashtable
    classes with the elimination of synchronization overheads.
  • ƒThread-safety- when synchronization is required, wrapper implementations are provided for temporarily
    synchronizing existing collection objects.
  • ƒImmutability- when immutability is required wrapper implementations are provided for making a collection
    immutable.
  • Extensibility- interfaces and abstract classes provide an excellent starting point for adding functionality and
    features to create specialized object collections.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s