42.9k views
0 votes
Tell what an array is and list two scenarios in which modeling data as a Java array (vs. another data type) would make sense.

User Jack M
by
4.5k points

1 Answer

2 votes

Answer:

The definition including its context of this discussion is outlined in the following clarification portion.

Step-by-step explanation:

  • An array seems to be a storage research method to collect a set number of constant weight. Whenever the array was indeed generated, the length including its array has been determined. Its period is set after development.
  • Depending mostly on array description, the array may contain data structures and even some objects in something like a class. For primitive data types, the individual values become located at contiguous locations throughout the store.

Scenario:

  • If we're to preserve a summary, we could use the appropriate array size.
  • An individual can however preserve an object list.
User Demonkoryu
by
5.1k points