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

Is hashmap thread safe?

770


Explain access modifiers in java.

783


What do you mean by default constructor in java?

813


Can we have static methods in an interface?

794


How to make a non daemon thread as daemon?

803


What are the differences between processes and threads?

758


What is a null point?

755


What's the difference between comparison done by equals method and == operator?

748


What is difference between jdk,jre and jvm?

805


What is regex used for?

751


Which list is sorted in java?

767


Explain numeric promotion?

814


What is the size of an array?

772


How would you use Bubble Sort to sort the number of elements?

818


What is a modifier?

1166