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


Please Help Members By Posting Answers For Below Questions

What are the advantages of java over cpp?

551


Why array is used in java?

511


Where are local variables stored?

510


What is the applet security manager, and what does it provide?

534


Explain about serializable interface in java?

578






What is the difference between static method and instance method in Java?

564


Explain the term virtual machine?

590


Write a java program to check if a number is prime or not?

535


What are different types of references?

526


How does varargs work in java?

609


Does java support function overloading, pointers, structures, unions or linked lists?

603


Is alive method in java?

504


how we can use debug in myeclipse 6.0 in order solve the problems that exist in our program when there are 900 to 1000 pages in a web application

1665


What is a void in java?

580


How does java pattern compile work?

542