Howmany number of objects we can store in an ArrayList. Is
there any limit?
Answer Posted / abdul
Array list size will increase dynamically.By default we can
store 16 objects.If number of objects increases the
arraylist size increase dynamically as below.
(2*Prevous size+2)
For ex: (2*16+2)=34 next time
(2*34+2)= 70
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
What is module with example?
What is difference between path and classpath in java?
What do heavy weight components mean in java programming?
Is null a value?
What are synchronized methods ?
What is the default execution method in java?
What do you mean by formatting?
What are the three parts of a lambda expression? What is the type of lambda expression?
What is the file type?
Can we create our own wrapper class in java?
Is there a case when finally will not execute?
What are the methods to rectify ambiguities in the interfaces in JAVA?
Explain restrictions on using enum?
What are the important features of Java 11 release?
Write a java program to count the number of words present in a string?