Array Length

The fixed number of elements an array can hold.

What is Array Length in Java?

Array Length — The fixed number of elements an array can hold.

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

Level: Apprentice · More Java terms at this level

Updated

In other subjects