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

Explain the init method?

980


List some important features of java 10 release?

1054


What is pass by value?

933


What is the use of System class?

1143


Which method must be implemented by all threads?

1248


What exactly is a .class file?

1033


What are advantages of exception handling in java?

1006


Why can't we make a class private in java?

1018


What is meant by string is immutable?

1061


What is Enum in Java?

1276


What is a text string?

1060


How do you write a good declaration?

963


what is daemon thread and which method is used to create the daemon thread? : Java thread

957


How do you start a new line in java?

969


Differentiate between vector and array list.

1047