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
How to stop a thread in java? Explain about sleep () method in a thread?
What is the generic class?
What is xslt in java?
Explain methods specific to list interface?
Can we override constructors?
Which method returns the length of a string?
Tell me are there implementations for sorting and searching in the java libarary?
Is a char always 1 byte?
How do you add an element to a set in java?
enlist some features of jdk.
What is function and its uses?
What is the use of list in java?
Highest level event class of the event-delegation model?
How we can execute any code even before main method?
How do you detect memory leaks?