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 / anjani
when we create the arraylist, we have two factors
1- inital size of array list,
2 - load factor (default is .75).
load factor means size of the arraylist will be doubled if
we fill 75% of the size availabe.
i mean if intial size of arraylist is 100 then when we will
insert 75th element in the arraylist, its size will be doubled.
| Is This Answer Correct ? | 13 Yes | 19 No |
Post New Answer View All Answers
Can we rethrow the same exception from catch handler?
How to restrict a member of a class from inheriting by its sub classes?
Why is stringbuffer thread safe?
What is a method vs function?
What do you mean by aggregation?
Name few "optional" classes introduced with java 8 ?
What is supplier in java?
What types of index data structures can you have in java?
Explain about field hiding in java?
What is the use of arraylist in java?
Say any two properties in beans?
Why singleton pattern is better than creating singleton class with static instance?
Can we access the non-final local variable, inside the local inner class?
Can a vector contain heterogenous objects?
Why do we use bufferedreader?