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

Why does java does not support multiple inheritance? Explain

922


What is a bubble sort in java?

898


Is there any difference between nested classes and inner classes?

1026


What is Mutex (Mutual Exclusion Object) ?

1078


Can we instantiate interface in java?

1088


Which class is the superclass of all classes?

1052


Is the milky way in a void?

912


What is the purpose of a volatile variable?

974


Which list is sorted in java?

964


Explain java coding standards for methods?

980


In a container there are 5 components. I want to display all the component names, how will you do that?

2137


which is advanced deep technology in java launched by the sun microsystem??? The answer is very logical If u need correct answer mail me at priya_gupta@gmail.com

3603


What is <> used for in java?

1069


give an example for encapsulation?

985


Can a constructor be made final?

1050