Howmany number of objects we can store in an ArrayList. Is
there any limit?
Answer Posted / phanindra
ArrayList is resizeable in nature. by default it's size is
10. whenever it reaches the maximum a new ArrayList object
will be created with capacity of (Initialcapacity*3/2+1)
so there is no Limit we can store any number of objects in
an ArrayList.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Write a program to print all permutations of string?
How do you generate random numbers in java?
How do you escape json?
Can a class be declared as static?
What is classpath?
Why is string builder not thread safe?
Difference between this() and super() ?
Why java is secure? Explain.
What does += mean in java?
What is lastindexof in java?
What is sizeof in java?
What are computer functions?
Why we go for collections in java?
What is the difference between double and float variables in java?
Define an abstract class with reference to java.