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 / satish

from the Java Source code of ensureCapacity() API,

int newCapacity = (oldCapacity * 3)/2 + 1;

So, (100 *3)/2 + 1 will be the answer.

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why using interface interface ?

1982


Which one of the following suits the description of a string better: derived or primitive?

913


What is the difference between variable declaration and variable initialization?

989


What is a generic type?

968


EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.

9156


What is the major drawback of internal iteration over external iteration?

973


What is difference between char array and string?

1066


What do you mean by Function Overloading in java?

1138


Compare Mutex and Semaphore in java.

951


Can we override static methods in java?

1029


What is included in core java?

1008


How is java created?

903


What is the difference between a checked and an unchecked exception?

937


Can java run on google chrome?

1155


What is the public method modifier?

964