Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9276159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:46:22+00:00 2026-06-18T16:46:22+00:00

By definition Linked List is a list that each element of it refers to

  • 0

By definition Linked List is a list that each element of it refers to the next element (and previous element if we are talkin about double linked list.)
http://en.wikipedia.org/wiki/Linked_list

However, in Java LinkedList is implementing List, Queue, Deque and more.
http://docs.oracle.com/javase/6/docs/api/java/util/LinkedList.html

You can not find a method in LinkedList that gives you next or previous object in the list, the best you can do is to get an Iterator and get objects. My question is why Java has called this data structure LinkedList, while it is not truly a linked list? A linked list can be implemented in Java like this:

Public class MyLinkedList{
 public int value;
 public MyLinkedList next;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T16:46:23+00:00Added an answer on June 18, 2026 at 4:46 pm

    My question is why Java has called this data structure LinkedList, while it is not truly a linked list?

    Because the implementation of it is a linked list. From the documentation:

    Doubly-linked list implementation of the List and Deque interfaces. Implements all optional list operations, and permits all elements (including null).

    LinkedList is a List implemented via a linked-list, ArrayList is a List implemented using an array, etc. Which one you choose can matter in terms of runtime characteristics. For instance, from the LinkedList docs:

    All of the operations perform as could be expected for a doubly-linked list. Operations that index into the list will traverse the list from the beginning or the end, whichever is closer to the specified index.

    So you know, for instance, that next on the Iterator you get from iterator or listIterator will be quite efficient, but that get by index will involve traversal.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So Im trying to make a double linked list that I can search for
I have a file with a double-linked-list that contains a set of process identifiers
I have a URL that displays a customer list like this: http://domain.com/pls/apex/f?p=724:2:820875406836801::::: The list
I have set up a circular linked list data structure that represents a word,
I am unsure about the correct definition of transient properties: One can define transient
I have a legacy SQL database that has a linked table to store specifications
I'm using django-tables (http://pypi.python.org/pypi/django-tables/0.2) to render the contents of a MySQL table. The model
I am trying to store a customer in a linked list. I am new
I have a linked list of Foo objects. Foo is a base class, which
Hi I am trying to implement a linked list using templates and ADT. At

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.