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

Why is whitespace important?

553


What is a function in programming?

549


Explain the difference between treeset and treemap in java?

527


What is hash code collision?

588


What is purpose of find feature?

609






Explain how to convert any java object into byte array.

545


What is meant by javabeans?

613


What does += mean coding?

509


What is sizeof in java?

555


What is the difference between iterator and list iterator?

532


What is purpose of keyword void?

560


When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?

542


when should you use stringbuilder class in a program?

522


What is thread safe in java?

544


What is thread start?

518