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 / ravindra reddy

The size of the arraylist will increase to 150 why because
in arraylist the elements are reach to initial size of the
array list then size will be increase to half of the
capacity

Is This Answer Correct ?    38 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why not override thread to make a runnable? : Java thread

781


What is native method in java?

802


How do you use compareto method?

769


Explain the key functions of data binding?

808


What does isempty () do in java?

826


Explain the difference between treeset and treemap in java?

771


What is token in java?

788


What is io stream in java?

752


What is method reference?

738


Can we override constructor?

792


Explain the access modifiers for a class, method and variables?

911


What is a parameter in simple terms?

772


What is void data type?

769


What is runtime polymorphism or dynamic method dispatch?

781


What is string and its types?

869