Collection Framework Advantages

Google Advertisements

Prev Tutorial Next Tutorial

Difference Between Array and Collection

The main advantage of Collection Framework are Collections are grow-able in nature, hence based on our requirement we can increase or decrease the size. Some others advantage are given below;

  • Collection is re-sizable or dynamically draw-able memory.
  • Provides useful data structures in the form of predefined classes that reduces programming affords.
  • It support to store heterogeneous elements or object.
  • It provides higher performance.
  • It provides Extendability (depends on incoming flow of data,if the size of collection framework variable is increasing than the collection framework variable is containing Extendability feature).
  • It provides adaptability facility( The process of adding the content of one collection framework variable to another collection framework either in the beginning or in the ending or in the middle in known as adaptability).
  • It is one of the algorithmic oriented.
  • It provides in-built sorting technique.
  • It provides in-built searching technique.
  • It provides higher preliminary concepts of Data Structure such as:- Stack,Queue,LinkedList,Trees ..etc.

Difference between Array and Collection

ArrayCollection
1Arrays are fixed in size and hence once we created an array we are not allowed to increase or decrease the size based on our requirement.Collections are grow-able in nature and hence based on our requirement we can increase or decrease the size.
2Arrays can hold both primitives as well as objects.Collections can hold only objects but not primitive.
3Performance point of view arrays faster than collectionPerformance point of view collections are slower than array
4Arrays can hold only homogeneous elements.Collections can hold both homogeneous and heterogeneous elements.
5Memory point of view arrays are not recommended to use.Memory point of view collections are recommended to use.
6For any requirement, there is no ready method available.For every requirement ready made method support is available.

Note: Above difference is same for difference between Array and any Collection object (like Vector, ArrayList, LinkedList).


Prev Tutorial Next Tutorial

Google Advertisements

We have more than 5 Groups which have 500000+ Members and some Pages have more than 100000+ members. For Advertisement contact on hitesh.xc@gmail.com or 9999595223

Buy This Ad Space @$50 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 8076671483

Pure VPN Privide Lowest Price VPN Just @ $1.65. Per Month with Non Detected IP Lowest Price Non Detected IP VPN

Classpath variable is set for providing a path for predefined Java classes which is used in our application. All classes are available in lib/rt.jar so we set classpath upto lib/rt.jar. Difference between path and classpath in Java

Cloud computing is the on demand availability of computer system resources, especially data storage and computing power, without direct active management by the user. Cloud Computing Tutorial

College Projects Related to Java, AWT, C Projects for College, C++ Projects for College, Android Projects. Download Java C C++ Projects

Download Projects

Adsense Advertisements


Buy This ads Space 8076671483

Buy This Ad Space @$120 per Month, Ad Size 300X600 Contact on: hitesh.xc@gmail.com or 8076671483 Try this Keyword C++ Programs