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

Is overriding possible in java?

901


Explain about class in java?

1045


Can we call the run() method instead of start()?

983


What is the differences between c++ and java? Explain

996


What is append function?

941


Is 0 an irrational number?

997


What is the requirement of thread in java?

994


Why does java have two ways to create child threads? Which way is better?

985


Explain the term virtual machine?

983


Difference between a process and a program?

1057


How do you test a method for an exception using junit?

1133


Which java version is latest?

962


why java uses class level type casting ?

2608


What is function and method in java?

905


Explain different ways of creating a thread?

985