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

remember.. there are 2 things involved.. capacity and size..
capacity represents how many max elements the list can
accomodate in it, size represents how many elements are
present currently in the list..the capacity is automatically
increased by certain amount (10, 20, 30..) based on the
current size once the size is equal to capacity..

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What checkbox method allows you to tell if a checkbox is checked?

1052


When is update method called?

1194


What do you mean by constant time complexity?

1335


Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?

1130


What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?

1094


Differences between external iteration and internal iteration?

1212


What is wrapper class html?

990


What are the restrictions imposed by a Security Manager on Applets?.

2648


What do you mean by local variable and instance variable?

995


What is a static method in java?

1094


What do you understand by looping in java? Explain the different types of loops.

1088


What is the difference between serializable and externalizable interface?

1163


What is object in java?

1039


Differece between class and generic class?

1092


Why do we use string?

1116