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...

What is the difference between array and arraylist?
what is the difference between arraylist and linkedlist?

Answer Posted / madhu sudana rao

first one:
array is fixed length,arraylist is growing array(means
they have no fixed length , if u add more the size
arraylist size incress and vise versa)
seond one:
if add and remove the elements in the middle takes more
time by using arrylist in that time use linkedlist
arrylist is good for retiveing the elements in specific
position
arraylist is faster than linkedlist for random accesing
of elemnets

Is This Answer Correct ?    20 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is empty list java?

916


How does hashset works in java?

1078


Explain spliterator in java8?

1042


Why do we need singleton class?

999


design an lru cache in java?

996


How use .contains in java?

1166


What is java console application?

1000


Can a class be private in java?

987


What is the latest java version?

1050


Why is string class considered immutable?

1044


How can an object be unreferenced?

1021


What is hashing principle in java?

1018


When should a function throw an exception?

1030


What is treeset and treemap in java?

1063


Is list thread safe in java?

917