Howmany number of objects we can store in an ArrayList. Is
there any limit?
Answer Posted / abdul
Array list size will increase dynamically.By default we can
store 16 objects.If number of objects increases the
arraylist size increase dynamically as below.
(2*Prevous size+2)
For ex: (2*16+2)=34 next time
(2*34+2)= 70
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
How can we create objects if we make the constructor private ?
What does g mean in regex?
What is difference between static class and normal class?
What do you mean by mnemonics?
Write a program to search a number in the given list of numbers.
What is the difference between class & object?
These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }
According to java operator precedence, which operator is considered to be with highest precedence?
What is Garbage Collection in Java
Write a java program that prints all the values given at command-line.
What is ‘is-a ‘ relationship in java?
How do you declare a destructor in java?
What are different ways of object creation in java ?
How to make a class or a bean serializable?
How do you convert string to int in java?