if arraylist size is increased from initial size what is
the size of arraylist...suppose initial is 100 , if i add
101 element what is the size...
Answer Posted / siri
remember.. there are 2 things involved.. capacity and size..
capacity represents how many max elements the list can
accomodate in it, size represents how many elements are
present currently in the list..the capacity is automatically
increased by certain amount (10, 20, 30..) based on the
current size once the size is equal to capacity..
| Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
What is arraylist class in java?
What is method reference?
What are green threads in java?
What is blank final variable?
What is the default value of float and double datatype in java?
Why can we not override static method?
How do you implement tree mirroring in java?
What are heap memory and stack memory and what are memory tables.
What is a parameter in java?
What is the arraylist in java?
What is a parameter example?
Why javac is not recognized?
What is singleton class in ruby?
what is thread? : Java thread
Can we declare a constructor as final?