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

Can we rethrow the same exception from catch handler?

1109


What are static initalizers in java ?

1006


What is a ternary operator in java? What is an interface?

992


What does sizeof return?

978


Can we make a constructor final?

1010


How are destructors defined in java?

1024


Write a program to find the whether a number is an Armstrong number or not?

1018


Explain the private protected method modifier?

973


whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net

2088


Can a method be static?

961


What are constructors in java?

1094


Why is flag used in java?

1060


Is array an object in java?

948


Is double bigger than float?

978


What is the preferred size of a component in java programming?

990