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
Define how objects are stored in java?
Explain the significance of listiterator.
Can we have more than one package statement in source file ?
What is computer compiler?
How to overcome the exception object reference not set to an instance of object?
Does anyone still use java?
What is the difference between abstraction and encapsulation?
When do we use synchronized methods in java?
Is object a data type in java?
What is api in java?
How many wrapper classes are there in java?
What is the difference between JDK and JVM?
Why wait and notify methods are declared in object class?
What is the difference between assignment and initialization?
What is the primary benefit of encapsulation?