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 checkbox method allows you to tell if a checkbox is checked?
When is update method called?
What do you mean by constant time complexity?
Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?
What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?
Differences between external iteration and internal iteration?
What is wrapper class html?
What are the restrictions imposed by a Security Manager on Applets?.
What do you mean by local variable and instance variable?
What is a static method in java?
What do you understand by looping in java? Explain the different types of loops.
What is the difference between serializable and externalizable interface?
What is object in java?
Differece between class and generic class?
Why do we use string?