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...

Difference between array and arraylist.

Answer Posted / mohammad fazulullah

Array is the object and it stores the object of same type

Eg : Its stores complete integer types or string types

int[] IntArray = new int[3];
string[] StringArray = new StringArray[2];

Arraylist is the collection in which we can store the
objects of any data type.

Eg : Arraylist Arr = new Arraylist()
Arr.Add(13); // Integer Type
Arr.Add(10); // String Type

2 . Arrays has the Fixed Lenght where as the Arraylist
varies the leghth as the objects Added.

Is This Answer Correct ?    196 Yes 32 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the Propertie sof class?

992


How to store image in arraylist in java?

919


What is the structure of java?

963


What are locale settings?

933


What is better- service oriented or batch oriented solutions?

2144


What are parsers? Dom vs sax parser.

983


What is preparedstatement in java?

977


What is the difference between double and float variables in java?

1081


How a string is stored in memory?

955


In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?

1267


What are the changes in java.io in java 8 ?

966


Why java doesn’t support multiple inheritances?

959


Is 64bit faster than 32 bit?

1011


What are meta-annotations?

932


How does a for loop work?

941