| |
GeekInterview.com > Placement Papers > DRDO
| Print | |
Question: What is an array? What is the advantage of linked-list over array?
|
| May 05, 2007 07:54:42 |
#6 |
| Bijoy kumar Baral |
Member Since: Visitor Total Comments: N/A |
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 |
| |
Back To Question | |