Array In Java

This blog explain about Array in detailed.

Array:-

A group of similar data types is called an array. Arrays are used in computer programming to organize the same type of data.

To declare an array, define the variable type with square brackets.

Array

Array can store the primitive datatypes such as int, char, double, and float.

Array occupy Continues memory.

Screenshot from 2023 11 04 15 58 11

Array are index based (0) Ex:

based

Unused memory will be filled with default Value.

default

Java Support ‘n’ dimension .