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
What is the public method modifier?
what is use of functional interface in java 8?
What are different types of classloaders?
Explain about join() method?
What are the drawbacks for singleton class?
Can you inherit from an abstract class java?
Explain when we should make an instance variable private.
What is the maximum size of array in java?
Why hashset is used in java?
Is string is a data type?
What are the java ide’s?
Write a program to check for a prime number in java?
Is zero a natural number?
Can we write multiple catch blocks under single try block?
How does map works in java?