Java array tutorial shows how to use arrays in Java. We initialize arrays, access array elements, traverse arrays, work with multidimensional arrays, compare arrays and search for array elements. Array is a collection of elements of same type. For example an int array contains integer elements and a String array contains String elements. The elements of Array are stored in contiguous locations in the memory. Arrays in Java are based on zero-based index system, which means the first element is at index 0. This Learn how to declare, initialize, access, change and get the length of arrays in Java. Arrays are used to store multiple values in a single variable, instead of separate variables. Learn how to use arrays in Java to store and process fixed-size collections of elements of the same type. Find out how to declare, create, access, sort, search, and reverse arrays, and how to use the Arrays class methods.