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 / sakshi jauhari

Arraylist is written as
ArrayList<String> arr= new ArrayList<String>();
whereas array is specified for a single data type object
only like..
int[] ar = new int[6];

Arraylist can be specified for any data type object that it
can store.
its range can also be resized which is not possible in
array.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is java a security risk?

1031


Is java a software?

942


is it possible to instantiate the math class?

1024


Define interface in java?

1071


If an object reference is set to null, will the garbage collector immediately free the memory held by that object?

1146


Why isn’t there operator overloading?

1061


What is string syntax?

1048


What is a protected void?

919


What is a method in programming?

1180


How to display arraylist values in java?

999


explain the difference between jdk and jvm?

991


Is string a class?

1020


What is exception propagation?

1129


What is immutability in java?

1070


What are untrusted applets?

1134