F
F
foonfyrick2021-01-10 13:47:23
Kotlin
foonfyrick, 2021-01-10 13:47:23

What does homogeneous and heterogeneous data mean? Emphasizing data structures?

I read the following on the site:
There are 5 differences between an array and a collection, as shown below:
1) Arrays store homogeneous data. Collections store both homogeneous and heterogeneous data.
2) Arrays do not have underscore data structures while collections have underscore data structures.

I can’t understand what kind of homogeneous and heterogeneous data, what kind of underlining data structures, I somehow missed this topic.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
koperagen, 2021-01-10
@foonfyrick

You came across a machine translation site for stackoverflow responses.
In the original :
1. Arrays store homogeneous data. Collections store both homogeneous as well as heterogeneous data.
These keywords (java homogeneous heterogeneous data) google this answer https://stackoverflow.com/questions/36700490/what-...
2. In Arrays, there are no underlining data structures, whereas Collections have underlining data structures.
I think there is a typo here, meaning underlying, i.e. "collections are based on data structures". For a Map, this is, for example, a hash array, a tree, a trie, for a List, a linked list, an array, and so on.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question