0
arrays utility
so which means arrays allows you to write less code and call those variables later
2 odpowiedzi
+ 1
array is created dynamically, when you write
String[] arr = new String[10];
you create 10 memory block of String data type size. You can access their value by array index, it call variable by reference. arr store address of first index. and it can get address of nth index by this expression
address of nth index = size of data type * array index that is n.
here n start from 1 not 0.
0
array used to collect a similar data items which are stored under common name