What does an array hold? - ProProfs Discuss
Advertisement

What does an array hold?

Asked by Wyatt Williams, Last updated: Feb 26, 2024

+ Answer
Request
Question menu
Vote up Vote down

2 Answers

C.Evelyn

C.Evelyn

C.Evelyn
C.Evelyn

Answered May 06, 2018

An array is an average data structure that holds similar values of same data type. Arrays can hold references as well as primitives. For storing and accessing a sequence of objects, Array is the most efficient data structure

Here is the list of most important array features you must know.
• copying and cloning
• insertion and deletion
• searching and sorting

As it is generally known, the Java language has only two data types which is the Primitives data type and References data type. An array is not a primitive data type because it has only one field called length. Hence, an array is a reference type.

upvote downvote
Reply 

John Smith

John Smith

John Smith
John Smith

Answered Nov 06, 2016

Similar values of same data type
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.