Howmany number of objects we can store in an ArrayList. Is
there any limit?

Answer Posted / rajender

there is no restriction to store object in arraylist.it's
default size is 10.wenever it's reaches the maximum size
it's increase size(current capacity*3/2+1).

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we instantiate interface in java?

778


How to do encapsulation in java?

674


How do you create a sop?

624


Is double bigger than float?

638


What is the difference between quicksort & mergesort? When should they be used? What is their running time?

733






If a method is declared as protected, where may the method be accessed in java programming?

584


Why to use nested classes in java? (Or) what is the purpose of nested class in java?

614


What is the use of default method in interface in java? Explain

626


What is the difference between math floor and math round?

594


What is difference between length and length() method in java ?

657


What are the features of java?

624


Why is sizeof not a function?

649


How do you make an arraylist empty in java?

568


How does varargs work in java?

720


Explain about the main() method in java?

688