answersLogoWhite

0


Best Answer

No. there is actually no such limit in any of the collections in java. The arraylist and vector are the most commonly used collections and they take thousands of objects. I have personally used them with atleast a 100,000 thousand objects.

User Avatar

Wiki User

βˆ™ 13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How many number of objects we can store in an ArrayList. Is there any limit?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are the requirements to download a java arraylist?

The requirements to download a java arraylist are a pc with java software installed. A java arraylist is used to store a group of elements in a specific order.


How you can store a class variables in array list?

An (non generic) arrayList in java can save any type of object (in this case your class variable) in this straightforward way: MyClass myClassVar = new MyClass(); ArrayList myArrayList = new ArrayList(); myArrayList.add(myClassVar);


What are advantages of an arraylist?

ArrayList Features In Java Index based – Elements can be randomly accessed using index . Arraylist Index start with β€˜0’. Ordered – Elements maintain insertion ordered . Dynamic resizing – increase size dynamically when more elements needs to be added than it’ current size. Non synchronized – is not synchronized, by default.. Duplicates allowed – We can add duplicate elements . null value – Arraylist can store null values.


Is there a limit to the number of Pokemon you can store on Pokemon Ranch?

Up to 1000 Pokemon


What is an Arraylist used for?

An ArrayList is a data structure. It stores data in an array that can be dynamically resized. This data structure in Microsoft .NET Framework contains Methods that assist the programmer in accessing and storing data within the ArrayList. The following link explains the .NET ArrayList class. http://msdn2.microsoft.com/en-us/library/system.collections.arraylist(vs.80).aspx


What is the age limit to rent a store space?

The age limit depends on where in the world you are trying to rent a store space.


Can a certain someone store unlimited number of photos to a usb flash drive until the data storage limit is reached?

Yes, it is possible to store unlimited amount of photos to a USB flash drive until the data storage limit is reached.


Where does the JVM store objects?

heap


Where is no limit scooters located?

No Limit Scooters currently doesn't have a physical store and only ships from their online store which is located in southern California.


Difference between list and set in java?

A List is an ordered collection of elements. A Set is a collection of unique elements. Sets should be used when you want to store objects without duplicates. Lists should be used any time you need to store an unknown number of objects.


How do store owners use math?

To price the objects in there store and to give the people the right cash back. To price the objects in there store and to give the people the right cash back.


Does an object oriented database store data in tables?

No, object-oriented databases do not store data in tables like relational databases. Instead, they store data as objects that have attributes and methods associated with them. Objects in an object-oriented database can also have relationships with other objects, making it a more flexible way to store and access data.