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 / srinu
Arraylist are growble nature.so present capacity of arraylist
100 then add an 101 element then that time current capacity
is formula
(101*3/2)+1=151
| Is This Answer Correct ? | 10 Yes | 6 No |
Post New Answer View All Answers
How transient variable is different from volatile variable?
What is string literal in java?
What does the “static” keyword mean?
What are the uses of synchronized keyword?
Why charat is used in java?
Can you write a java class that could be used both as an applet as well as an application?
When is the finally clause of a try-catch-finally statement executed?
What is the purpose of the return statement?
What is the static variable?
Given a singly linked list, how will you print out its contents in the reverse order? Can you do it with consuming any extra space?
Difference difference paint() and paintcomponent()?
What are the high-level thread states in java programming?
What is length in java?
What is the need of transient variables in Java ?
What is adapter in java?