Howmany number of objects we can store in an ArrayList. Is
there any limit?
Answer Posted / rahulmishra642
It depends on list implementation.Since ArrayList is backed by an arrays so its size is limited to Integer.MAX_VALUE
and it can't hold more than interger.MAX_VALUE.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between assignment and initialization?
How big is a 32 bit integer?
What are different types of classloaders?
How do you end a program?
Explain importance of inheritance in java?
Can we declare the main method of our class as private?
Why string is immutable or final in java
Why main() method is public, static and void in java ?
What are the different types of methodologies?
Why hashset is used in java?
Which of the classes will have more memory allocated?
Why string is not thread safe?
Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?
Similarity and difference between static block and static method ?
Define a java class.