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 do you mean by exception handling in Java?
What is immutable in java?
Why singleton is not thread safe?
What do bitwise operators do?
Can constructor be protected in java?
What is main difference between variable and constant?
What is difference between char array and string?
What is native code?
Why should we use singleton pattern instead of static class?
What are 4 pillers of object orinted programming?
Is 9 a prime number?
How is string immutable in java?
Why does my function print none?
What do you mean by default constructor in java?
What is the declaration statement?