Search This Blog

Saturday, May 05, 2007

What are the benefits of the Java collection framework?

Java Collection framework provides flexibility,
performance, and robustness.

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

1 comment:

A W M said...