Java Array

Lokesh Gupta

Arrays in Java, conceptually, are no different than in other programming languages.

  • Arrays are contiguous memory locations storing only one type of item in a sequence.
  • Arrays provide index-based access i.e. the first element of the array is stored at the 0th index, 2nd element is stored on 1st index and so on.
  • Note that, in Java, arrays are also objects that inherit the Object class, and implement the Serializable as well as Cloneable interfaces.
  • We can store all kinds of primitive values or objects in an array.
  • Java supports single dimentional or multi-dimentional arrays, both. 

The java.util.Arrays class provides many useful static methods to work with arrays and perform common operations on them.

1. Array Basics

2. Array Operations

3. Searching and Sorting

4. Conversions

5. Advance Topics

Happy Learning !!

Sourcecode on Github

Comments are closed for this article!

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.

Our Blogs

REST API Tutorial

Dark Mode

Dark Mode