Name an advantage of array over linked list?
Answer Posted / gurpreet kaur
In arrays memory requirement is less as a refrence is not
required whereas memory for the data as well as for the
pointer is required and hence the overhead.
Arrays allow random access, any element can be accessed
using the subscript whereas linked lists allow sequential
access, accessing of any element requires processing of the
list from the beginning upto the element.
| Is This Answer Correct ? | 17 Yes | 4 No |
Post New Answer View All Answers
• What are the desirable attributes for memory managment?
what type of question are asked in thoughtworks pair programming round ?
What is destructor oops?
Which is better struts or spring?
What is the diamond problem in inheritance?
What is class and object in oops?
What is abstraction example?
What is advantage of inheritance?
What is polymorphism give a real life example?
How do you achieve polymorphism?
Why is there no multiple inheritance?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
What is polymorphism what are the different types of polymorphism?
What is encapsulation oop?
What is multilevel inheritance explain with example?