Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

if arraylist size is increased from initial size what is
the size of arraylist...suppose initial is 100 , if i add
101 element what is the size...

Answer Posted / rajnish

The Size of the arraylist will become 101 only once you call suppose al.size() but it will calculate it's capacity like below:

New Capacity = (current capacity*3/2)+1

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When should I use singleton pattern?

990


What are the core java topics?

1004


Explain heap sort?

1062


What is the difference between keyword and identifier?

990


Which sorting is best in java?

969


What is map in java?

959


What are autoboxing and unboxing? When does it occur?

904


Tell us something about an iterator.

909


why Interface used?

964


What is use of static in java?

1122


What is a singleton class? Give a practical example of its usage.

1059


What is difference between iterator and enumeration in java?

957


What are the main features of java?

931


What are static variables and functions?

1093


What is a variable declaration?

950