52. Tell me about ArrayList?

Tell me about ArrayList?

  • ArrayList in Java is used as a dynamic array to store elements.
  • Can contain duplicate elements
  • Maintain the orders of elements added
  • Asynchornous mechanisms
  • Speed of accessing elements is very fast because it’s stored data by index
  • The operator of adding or removing elements is very slow because a lots of shifting among the elements is required

Leave a Reply

Your email address will not be published. Required fields are marked *