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
Does treeset allow null in java?
Why do we need strings in java?
What are namespaces in java?
What will happen if a thrown exception is not handled?
What is static block?
What is the protected method modifier?
What is nested class?
How is it possible in java programming for two string objects with identical values not to be equal under the == operator?
What does arrays sort do in java?
What is the use of using enum to declare a constant?
What are controls and their different types in awt?
Realized?
Do you know why doesn't the java library use a randomized version of quicksort?
What is the size of a string in java?
What is flush () in java?