Computer Science, asked by iamkartikshukla, 1 month ago

What is an array in java programming? why do we need it?​

Answers

Answered by gbarman74
0

Explanation:

Java provides a data structure, the array, which stores a fixed-size sequential collection of elements of the same type. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type.

Answered by ajha22480
3

Answer:

See here:-

Explanation:

  • Arrays are used to store multiple values in a single variable, instead of declaring separate variables for each value.

  • Java provides a data structure, the array, which stores a fixed-size sequential collection of elements of the same type. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type.
Similar questions