arrays utility | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

arrays utility

so which means arrays allows you to write less code and call those variables later

3rd Nov 2016, 12:10 PM
Emmanuel Adjei-kusi
Emmanuel Adjei-kusi - avatar
2 Answers
+ 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.
3rd Nov 2016, 12:40 PM
Aditya kumar pandey
Aditya kumar pandey - avatar
0
array used to collect a similar data items which are stored under common name
9th Nov 2016, 3:06 AM
Gajenthiran.V
Gajenthiran.V - avatar