Java Array

2D Array in Java

In this tutorial you will learn about 2D array in Java. If you don’t know about what is array then I would recommend you to read the previous tutorial: Array in Java (1D) 2D Array in Java Array is a collection of similar type of elements. Array can be of any dimension but generally we …

2D Array in Java Read More »

Anonymous Array in Java

An array without name is known as anonymous array in java.  As the array do not have any name so it can be used only once.  Anonymous array is passed as an argument of method.  Anonymous array is created and initialized in the same line. How to Create Anonymous Array in Java? A sample program …

Anonymous Array in Java Read More »

Array in Java (1D)

In this tutorial I will talk about one dimensional array in java. In the next tutorial we will learn about multidimensional array. Array in Java Array is the collection of similar type of data having contiguous memory location.  Due to contiguous memory location the performance becomes fast.  The biggest disadvantage of array is, we can’t …

Array in Java (1D) Read More »