Uses of Interface java.util.RandomAccess (Java Platform SE 8 )
Date: 2026-04-22

## Uses of Interface
java.util.RandomAccess

- Packages that use RandomAccess
  Package | Description
  --- | ---
  java.util | Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array).
  java.util.concurrent | Utility classes commonly useful in concurrent programming.
  javax.management | Provides the core classes for the Java Management Extensions.
  javax.management.relation | Provides the definition of the Relation Service.

- - ### Uses of RandomAccess in java.util

    Classes in java.util that implement RandomAccess
    Modifier and Type | Class and Description
    --- | ---
    `class` | `ArrayList<E>` Resizable-array implementation of the `List` interface.
    `class` | `Stack<E>` The `Stack` class represents a last-in-first-out (LIFO) stack of objects.
    `class` | `Vector<E>` The `Vector` class implements a growable array of objects.

  - ### Uses of RandomAccess in java.util.concurrent

    Classes in java.util.concurrent that implement RandomAccess
    Modifier and Type | Class and Description
    --- | ---
    `class` | `CopyOnWriteArrayList<E>` A thread-safe variant of `ArrayList` in which all mutative operations (`add`, `set`, and so on) are implemented by making a fresh copy of the underlying array.

  - ### Uses of RandomAccess in javax.management

    Classes in javax.management that implement RandomAccess
    Modifier and Type | Class and Description
    --- | ---
    `class` | `AttributeList` Represents a list of values for attributes of an MBean.

  - ### Uses of RandomAccess in javax.management.relation

    Classes in javax.management.relation that implement RandomAccess
    Modifier and Type | Class and Description
    --- | ---
    `class` | `RoleList` A RoleList represents a list of roles (Role objects).
    `class` | `RoleUnresolvedList` A RoleUnresolvedList represents a list of RoleUnresolved objects, representing roles not retrieved from a relation due to a problem encountered when trying to access (read or write) the roles.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.