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
Why is java architectural neutral?
How many threads does a core java have?
How many types of gc are there in java?
State differences between C and Java?
When do we use hashset over treeset?
What is the functionality of the stub?
how can i use a nonsynchronized hashtable?
Tell me how many ways are there to initialise an integer with a constant.
Which are different kinds of source code?
What is prime number in java?
Is 0 true or false in java?
What is the final class modifier?
What is difference between char array and string?
Explain the difference between transient and volatile in java?
What is meant by binding in rmi?