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
How do you use find and replace?
What is a protected void?
What is early binding and late binding in java?
Does apple use java?
What is hashset in java?
What is equlas() and hashcode() contract in java? Where does it used?
What is a class component?
What does string [] args mean?
How do you find the maximum number from an array without comparing and sorting?
Can main() method in java can return any data?
What is java util list?
What does @override mean?
What are the types of strings?
What is break and continue statement?
How to find the given number is a prime number or not by getting input from the user