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

How can I debug the Java security exceptions and AccessControlExceptions?

1159


What are the characteristics of java?

1060


What is java ceil?

1040


How to sort an array in java without using sort method?

882


Program to Find the second largest element in an array.

1200


Name the components that are termed to be Heavy-weight component but available in Light-weight components?

2492


What is hashing in java?

1048


How to convert string to char and vice versa?

1009


What is string substring?

1179


What are the different data types in java?

1018


Explain about the main() method in java?

1117


What are the uses of synchronized keyword?

1004


What is the requirement of thread in java?

1060


Is java a prime method?

993


What are jee technologies?

1021