GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Placement Papers  >  DRDO
Next Question 
 DRDO  |  Question 1 of 9    Print  
what ia an array ? advantage linked-list over arry?

  
Total Answers and Comments: 7 Last Update: August 30, 2008     Asked by: sunita 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
February 02, 2006 02:54:06   #1  
Anjaki        

RE: what ia an array ? advantage linked-list over arry...
Array is a collection of similar entities like integers, float etc. Its syntax is int arr[] that  is, array is of int datatype. They store the variables in contiguous memory locations. The advantage of linked list lies in its flexibility in assigning memory locations. The element stored in linked list need not to be in contiguous memory locations.Hence,memory can be utilized efficiently.
 
Is this answer useful? Yes | No
March 03, 2006 05:17:48   #2  
kausik ray        

RE: what ia an array ? advantage linked-list over arry...
Array is a set of memory location in the user memory(RAM).adv. of linked list over array: 1. linked list is created by the dynamic memory alocation. Where as array is created by static memory allocation. So in linked list the memory space is properly utilised & in array the unused memory spaces are wasted.2. in linked list at any positon insertion,deletion of a node can be done. But in array insertion 7 deletion can be done on the end of an array.
 
Is this answer useful? Yes | No
March 15, 2006 14:08:28   #3  
vinnakota5279 Member Since: March 2006   Contribution: 1    

RE: what ia an array ? advantage linked-list over arry...

Technically, considering the antenna terminology an antenna array is collection of similar antennas oriented similarly to get greater directivity in desired direction.Therefore, an array can be defined as collection of memory locations.The advantage of linked list over array is in linked-list the information is not stored in random memory locations as in array so, there is no wastage of memory in an linked-list compared to array.Therefore,linked-list has advantage of good memory management over array.


 
Is this answer useful? Yes | No
July 28, 2006 03:34:40   #4  
laxman        

RE: what ia an array ? advantage linked-list over arry...
In array we can insert or delete an element in the list , and run time memory allocation is not possible in the arrays,we can add memory and delete memory allocations.in arrays it is not possible to store large amount of data where it is possible withlinked list.
 
Is this answer useful? Yes | No
May 08, 2007 08:13:18   #5  
sunil kumar        

RE: what ia an array ? advantage linked-list over arry...

Array is a collection of homogenious data elements stored in continuous memory locations.

In array we have a direct access to any element but in linklist to access any element we have to begin from the start node.


 
Is this answer useful? Yes | No
May 17, 2007 07:54:42   #6  
Bijoy kumar Baral        

RE: what ia an array ? advantage linked-list over arry...
An Array is an collection of data elements of similar type.
Arrays are fixed-length structures for storing multiple values of the same type. An array implicitly extends java.lang.Object so an array is an instance of Object.
But arrays are directly supported language features.


Linkedlist is the ordered collection of data elements not in similar types.
Linked list implementation of the List interface,the LinkedList class provides uniformly named methods to get, remove and insert an element at the beginning and end of the list,Linked list implementation can't be synchronized

 
Is this answer useful? Yes | No
August 30, 2008 06:59:18   #7  
shmlbbt Member Since: June 2008   Contribution: 2    

RE: what ia an array ? advantage linked-list over arry?
If you want to insert or remove element from the end, use arraylist. But adding or removing an element from the middle is expensive because the reminder array should be copied one step backward or forward. But this is very easy in a linked list because just need to change the link.

Getting an element from the array list is very easy, but from a linked list is difficult because you have to start searching from the first node and travers through each and every node.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
Related Categories
Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape