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 / rajnish
The Size of the arraylist will become 101 only once you call suppose al.size() but it will calculate it's capacity like below:
New Capacity = (current capacity*3/2)+1
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Explain the init method?
List some important features of java 10 release?
What is pass by value?
What is the use of System class?
Which method must be implemented by all threads?
What exactly is a .class file?
What are advantages of exception handling in java?
Why can't we make a class private in java?
What is meant by string is immutable?
What is Enum in Java?
What is a text string?
How do you write a good declaration?
what is daemon thread and which method is used to create the daemon thread? : Java thread
How do you start a new line in java?
Differentiate between vector and array list.