Howmany number of objects we can store in an ArrayList. Is
there any limit?
Answer Posted / phanindra
ArrayList is resizeable in nature. by default it's size is
10. whenever it reaches the maximum a new ArrayList object
will be created with capacity of (Initialcapacity*3/2+1)
so there is no Limit we can store any number of objects in
an ArrayList.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can an interface have a constructor?
What is role of void keyword in declaring functions?
What is a protected void?
What is difference between char array and string?
What is stringwriter?
What is constructor in java ?
What is super in java?
What happens if we override private method?
Explain, java is compatible with all servers but not all browsers?
What is java util list?
What is the tradeoff between using an unordered array versus an ordered array?
What does yield method of the thread class do?
What is == mean?
How do you detect memory leaks?
Write a program to solve producer consumer problem in java?