Question: An array is known as a collection and is one of many collections in java. A collection is a mechanism to hold a set of

An array is known as a collection and is one of many collections in java. A collection is a mechanism to hold a set of items such as objects or primitives. As you explore arrays, you will undoubtedly come across many of the other java collections such as ArrayList. You will find that arrays are one of the basic java collections, indeed the other collections are mush more powerful than arrays. So,If arrays are so rudimentary in their abilities, and there are other collections that are much more powerful, why were arrays included in the java language?

Step by Step Solution

3.38 Rating (148 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Efficiency Arrays offer efficient storage and retrieval of elemen... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!