When to use ArrayList in Java? in Telugu | Java Collections in Telugu | జావా

What is ArrayList in Java?
Dynamic array for storing the elements.
Inherits the AbstractList.
Implements List interface.
Can contain duplicate elements.
Maintains insertion order.
Non synchronized.
Allows random access.

Java ArrayList Constructors:
ArrayList() – Construct an empty list.
ArrayList(Collection c) – Construct a list containing the elements of the specified collection.
ArrayList(int capacity) – Creates an ArrayList with the initial capacity.

For more details & source code…

Related Posts

Leave a Reply

Your email address will not be published.

© 2022 Code As Pro - Theme by WPEnjoy · Powered by WordPress