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
Explain java coding standards for interfaces?
What are advantages of exception handling in java?
How do you escape sequences in java?
What is meant by final class?
What is the use of conditional statement?
Why is core java important?
Explain JMS in detail.
What type of variable is gender?
How many types of design patterns are there?
What about interthread communication and how it takes place in java?
What are pass by reference and pass by value?
How many types of methods are there in java?
Which is easier .net or java?
Can we sort hashmap in java?
What is a singleton factory?