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
Why main function is static?
What are keywords give examples?
What are the types of inner classes (non-static nested class) used in java?
What does %4d mean in java?
Give the difference between the println method and sqrt method?
Define a java class.
What is static import in java?
Is there any sort function in java?
What is this keyword in java?
Is string is a data type in java?
What is difference between static class and singleton pattern?
What is the epoch date?
What is a marker interface?
What things should be kept in mind while creating your own exceptions in java?
List the three steps for creating an object for a class?