# Array Index

A zero-based number that identifies an element's position in an array.

## 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;
}
```

Level: Apprentice · [More Java terms at this level](https://www.ask-codey.com/glossary/subjects/java/apprentice)

Updated: September 27, 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)

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