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


Please Help Members By Posting Answers For Below Questions

Define linked list and its features with signature?

537


What are class types in java?

574


What is class variable java?

581


Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?

575


Write the algorithm to check the number non-leaf nodes in a tree.

587






Give me example of derived data types.

587


What do negative exponents mean?

542


What are the restrictions that are applied to the java static methods?

522


Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?

613


What is multithreading and its advantages?

571


Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..

1814


Why do we use threads in java?

561


What do you understand by synchronization?

588


What are heap memory and stack memory and what are memory tables.

505


What is string args [] in java?

537