Java Array Tutorials

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

Was this post helpful?

Join 7000+ Awesome Developers

Get the latest updates from industry, awesome resources, blog updates and much more.

* We do not spam !!

HowToDoInJava

A blog about Java and related technologies, the best practices, algorithms, and interview questions.