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

Array is a collection of similar data types,ArrayList is not you can store any type of data types in AL.ArrayList will autometically increase 50% of the size which we allocated previously, but Array wasn't.

ArrayList al= new ArrayList();
al.add("a");
al.add(10);

both can be accepted in ArrayList.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain

983


How many wrapper classes are there in java?

1011


What is difference between string and new string?

1030


What are register variables what are the advantages?

896


What is the difference between serial and throughput garbage collector?

1093


What is bigger kb or mb?

1040


What is the difference between I ++ and ++ I in java?

977


What is string length in java?

941


Is java 1.7 the same as java 7?

1040


What is the numeric promotion?

1018


What is the difference between a scrollbar and a scrollpane?

1046


Is a string literal?

1088


Is string a class?

1020


What is a jit compiler?

1128


How do you write a good declaration?

975