Prev Next

Java / List and its implementations

Why does ArrayList implement RandomAccess Interface?

RandomAccess is a marker interface used by List implementations to indicate that they support fast (constant time) random access.

The primary purpose of this interface is to allow generic algorithms to alter their behavior to provide good performance when applied to either random or sequential access lists.

More Related questions...

Show more question and Answers...


Comments & Discussions