what are arrays in java programming
Answers
Answered by
3
an array, in the context of Java is a dynamically created object that serves as a holder which contains constant number of values of the same type.
Example:-if you want to hold 100 integers in a sequence you can create an array for it
Example:-if you want to hold 100 integers in a sequence you can create an array for it
samuelpaul:
just messages you to know about your class
Answered by
3
ARRAY
An array is a collection of various memory locations stored in a variable called array variable.
ARRAY INDEX
Array has an index value .
For example suppose :
a [] is an array .
a [0] is the first element
a [1] is the second element.
EXAMPLE
Here is an example of an array !
a[0] = 1
a[1] = 2
a[2] = 3
This is an array .
It has to be declared by this statement.
int a[] = new int [3];
Hope it helps :-)
____________________________________________________________________
Similar questions