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
How can you set the applet size?
Explain the scope or life time of class variables or static variables?
What is ascii code?
How can we achieve thread safety in java?
Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.
How is Object Oriented Programming different from Procedure Oriented Programming?
What is null object in java?
What is comparable and comparator interface? List their differences
What does the “final” keyword mean in front of a variable? A method? A class?
Explain about collection interface in java?
Can list be null in java?
What is complexity in java?
What is balanced tree in java?
How is it possible in java programming for two string objects with identical values not to be equal under the == operator?
What is the use of set in java?