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
What are the benefits of operations?
What is use of arraylist in java?
How will you reverse a link list without using recursion?
Why isn’t there operator overloading?
What are conditionals and its types?
Convert Binary tree to linked list.
What is the method in java?
Can we declare a static variable inside a method?
What is meant by final class?
What does microservices mean?
What is meant by interface?
Explain implementation and how is it different from conversion?
What is the difference between an argument and a parameter?
Explain purpose of sleep() method in java?
whatis Home interface and Remoteinterface? with example?