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
Define linked list and its features with signature?
What are class types in java?
What is class variable java?
Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?
Write the algorithm to check the number non-leaf nodes in a tree.
Give me example of derived data types.
What do negative exponents mean?
What are the restrictions that are applied to the java static methods?
Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?
What is multithreading and its advantages?
Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..
Why do we use threads in java?
What do you understand by synchronization?
What are heap memory and stack memory and what are memory tables.
What is string args [] in java?