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

Explain about fail safe iterators in java?

1032


Why do we need data serialization?

999


What is not thread safe?

989


How can we make copy of a java object?

1157


What about static nested classes in java?

1152


What is bytecode in java ?

1198


Can we sort arraylist in java?

998


What is collection class in java? List down its methods and interfaces.

970


If a variable is declared as private, where may the variable be accessed?

1064


What are the differences between abstract class and interface?

1102


how to create constants in java?

1091


What is 32 bit float?

1002


whatis Home interface and Remoteinterface? with example?

2011


What is the purpose of final keyword and when to use it?

1006


When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?

1075