What is an array in java programming? why do we need it?
Answers
Answered by
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
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