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

Why do we need wrapper classes?

1007


What is the advantage of OOP in java?

1084


What is a qualifier in a sentence?

925


How do you control extraneous variables?

853


Can constructor be synchronized?

890


What means public static?

991


Define an applet in java?

1080


What is final method?

1013


How can we use primitive data types as objects?

898


What if static is removed from main method?

1009


What is currentthread()?

932


What state does a thread enter when it terminates its processing in java programming?

976


What is array list in java?

1019


Can a constructor be private and how are this() and super() method used with constructor?

931


What is size () in java?

1032