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 java uses the string and stringbuffer classes?
How do I print a “?
What is java volatile?
What is called module?
How do you add spaces in java?
What are the classes of java?
What is the main use of generics in java?
Can we use string in the switch case?
Explain the importance of finally over return statement?
What is included in core java?
What are the basic concepts of OOPS in java?
Can you inherit a constructor java?
How do you convert string to int in java?
What are the difference between string, string builder, and string buffer in java?
When do we use synchronized blocks and advantages of using synchronized blocks?