# Array Index

*noun*

say it: **“uh-RAY IN-deks”** **/əˈreɪ ˈɪndɛks/**

The position number of an element in an array, counting from 0 for the first one.

## What is **Array Index** in Java?

**Array Index** — A zero-based number that identifies an element's position in an array.

```java
class Route {
    String[] stops = {"Oak", "Pine", "Lake"};
    String secondStop = stops[1];
    int stopCount = stops.length;
}
```

## In a sentence

- “The first student is at **index** 0, so the tenth is at index 9.”

Level: Apprentice · [More Java terms at this level](https://www.ask-codey.com/glossary?category=java&level=2)

Updated: October 26, 2026

## In other subjects

- [Array Index in C#](https://www.ask-codey.com/glossary/array-index-c-sharp)
- [Array Index in JavaScript](https://www.ask-codey.com/glossary/array-index-javascript)
- [Array Index in PowerShell](https://www.ask-codey.com/glossary/array-index-powershell)
- [Array Index in Unix](https://www.ask-codey.com/glossary/array-index-unix)

Source: https://www.ask-codey.com/glossary/array-index
