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

Which is better singleton or static class?

987


What about instanceof operator in java?

1023


What is the generic class?

971


How do you calculate square roots?

1167


What are the restrictions imposed by a Security Manager on Applets?.

2614


What is difference between length and length() method in java ?

998


What is java autoboxing?

949


These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }

1088


Explain the difference between abstraction and encapsulation.

981


What is compiler and what its output.

1152


Can we catch more than one exception in a single catch block?

1081


What are access specifiers available in java?

1008


What is the difference between variable declaration and variable initialization?

1031


Are primitives objects?

1060


Give few difference between constructor and method?

966