What is RandomAccess Interface?

  • If a collection class implements RandomAccess interface then we can access any of its element with the same speed.
  • RandomAccess interface is marker interface and it dosent contains any methods.
  • ArrayList and vector classes implements this interface.

No comments:

Post a Comment