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
What are three ways in which a thread can enter the waiting state in java programming?
Can we have this () and super () together?
What is integer valueof?
How do you initialize an arraylist in java?
Difference between arraylist and vector.
Differentiate between the constructors and methods in java?
Why we cannot override static method?
What is variable and its types?
What is java util concurrentmodificationexception?
Add a value x to array from index l to r where 0 <= l <= r <= n-1
What is rule of accessibility in java?
What is a finally block? Is there a case when finally will not execute?
what is the use of bean managed and container managed with example?
How many types of gc are there in java?
What are the default and parameterized constructors?