New course! Every coder should learn Generative AI!
Try a free lesson+ 6
An array is collection of items stored at contiguous memory locations. The idea is to store multiple items of same type together. This makes it easier to calculate the position of each element by simply adding an offset to a base value, i.e., the memory location of the first element of the array (generally denoted by the name of the array).
For more refer to these links :
https://www-geeksforgeeks-org.cdn.ampproject.org/v/s/www.geeksforgeeks.org/introduction-to-arrays/amp/?amp_js_v=a2&_gsa=1&usqp=mq331AQA#referrer=https%3A%2F%2Fwww.google.com&_tf=From%20%251%24s&share=https%3A%2F%2Fwww.geeksforgeeks.org%2Fintroduction-to-arrays%2F
https://docs.oracle.com/javase/tutorial/java/nutsandbolts/arrays.html
Thanks
+ 2
An array is a data structure which stores multiple values in a particular order
+ 1
Single name for multiple contiguous values of same type