Which of the following - arrays or LinkedList allow elements to be accessed using index and how ?
Questions
Search
List By Company
List By Topic
Legacy
Tests
Repository
DashBoard
Java
Java 8
Java 7
Java Abbreviations
OCJP / SCJP
Class List
New in Java 8
Java Exceptions
Spring Exceptions
Java Enums
Java 8 Lambda
Java 8 java.time
Big Data
Best Of Java
Discussion
Search
Subscribe
Search Interview Questions
More than 3000 questions in repository.
There are more than 900 unanswered questions.
Click here
and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company
Label / Company / Text
Search
Submit Question
Interview Questions and Answers
Q1.
Which of the following - arrays or LinkedList allow elements to be accessed using index and how ?
Data Structure
Ans. Arrays allows elements to be accessed directly using the index.
As Array elements are stored in continuous memory locations it's very easy to find the memory address of any element using the formula as following
Memory Address of Array start or index 0 + ( Size of array element * Index )
Help us improve. Please let us know the company, where you were asked this question
:
Like
Discuss
Correct / Improve
 arrays  linkedlist
Correction
Duplicate of Another Question
Company where this question was Asked
Suggestion
Related Questions
What is the difference between ArrayList and LinkedList ?
If you are given a choice to use either ArrayList and LinkedList, Which one would you use and Why ?
In a Linked list with sorted numbers, insert a new numbers while maintaining the sort order.
Is this a valid initialization ? Explain.
Collection<Collection> collection = new LinkedList<LinkedList>();
Difference between ArrayList and LinkedList ?
Find the third last element in a linked list ?
Write a program for LinkedList, with method to append node and traversing the list ?
Write method to delete Node from a LinkedList.
Difference between List and LinkedList ?
Is it legal to initialize List like this ?
Help us and Others Improve. Please let us know the questions asked in any of your previous interview.
Any input from you will be highly appreciated and It will unlock the application for 10 more requests.
Company Name:
Questions Asked: