Computer Science, asked by pandu1412, 1 year ago

what are arrays in java programming

Answers

Answered by Urvashigaur02
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

samuelpaul: just messages you to know about your class
samuelpaul: fine.. attitude girl .. bhye
Urvashigaur02: im in 9
Urvashigaur02: its mentioned in my about
samuelpaul: but i'm using computer... so no statuses are seen in pc
Answered by Anonymous
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 :-)

____________________________________________________________________


pandu1412: great job
Anonymous: thank you :-)
Similar questions