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 does 0 mean in boolean?
Explain jdk, jre and jvm?
What does jenkins do?
why Interface used?
Explain parallel processing in java8?
What is sleep method?
What are register variables what are the advantages?
Why is a constant variable important?
What is string literal in java?
What is the different between get and post?
Explain all java features with real time examples
How big is a 64 bit float?
What is the difference between reader/writer and inputstream/output stream?
What is the purpose of the return statement?
Why does java have different data types for integers and floating-point values?