Install the Java SE Development Kit from http://java.sun.com/javase/downloads/index.jsp.

Once installed, you should find an archive called src.zip in the top of the JDK installation directory. The Java source code is in there.

The file is java/util/LinkedList.java.

update: You may also like to visit the online OpenJDK Source repository. See this answer below.

Answer from Bill Karwin on Stack Overflow
🌐
Oracle
docs.oracle.com › javase › 8 › docs › api › java › util › LinkedList.html
LinkedList (Java Platform SE 8 )
July 21, 2026 - Java™ Platform Standard Ed. 8 ... public class LinkedList<E> extends AbstractSequentialList<E> implements List<E>, Deque<E>, Cloneable, Serializable
🌐
Classpath
developer.classpath.org › doc › java › util › LinkedList-source.html
Source for java.util.LinkedList (GNU Classpath 0.95 Documentation)
1: /* LinkedList.java -- Linked list implementation of the List interface 2: Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004, 2005, 2006 Free Software Foundation, Inc. 3: 4: This file is part of GNU Classpath. 5: 6: GNU Classpath is free software; you can redistribute it and/or modify 7: it under the terms of the GNU General Public License as published by 8: the Free Software Foundation; either version 2, or (at your option) 9: any later version.
🌐
CodeGym
codegym.cc › java blog › java collections › linked list data structure in java
Linked List Data Structure in Java
January 14, 2025 - If you look into LinkedList Java 8 (or later version of the language) class code source (on Oracle website or in your IDE, in case of IDEA: crtl+B on the class name) you’ll see the next ...
🌐
GitHub
github.com › eagle518 › jdk-source-code › blob › master › jdk5.0_src › j2se › src › share › classes › java › util › LinkedList.java
jdk-source-code/jdk5.0_src/j2se/src/share/classes/java/util/LinkedList.java at master · eagle518/jdk-source-code
private static final long serialVersionUID = 876323262645176354L; · /** * Save the state of this <tt>LinkedList</tt> instance to a stream (that · * is, serialize it). * * @serialData The size of the list (the number of elements it · * contains) is emitted (int), followed by all of its · * elements (each an Object) in the proper order. */ private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException { // Write out any hidden serialization magic ·
Author: eagle518
🌐
Openjdk
hg.openjdk.org › jdk8 › jdk8 › jdk › file › 687fd7c7986d › src › share › classes › java › util › LinkedList.java
jdk8/jdk8/jdk: 687fd7c7986d src/share/classes/java/util/LinkedList.java
* @return an array containing the elements of the list * @throws ArrayStoreException if the runtime type of the specified array * is not a supertype of the runtime type of every element in * this list * @throws NullPointerException if the specified array is null */ @SuppressWarnings("unchecked") public <T> T[] toArray(T[] a) { if (a.length < size) a = (T[])java.lang.reflect.Array.newInstance( a.getClass().getComponentType(), size); int i = 0; Object[] result = a; for (Node<E> x = first; x != null; x = x.next) result[i++] = x.item; if (a.length > size) a[size] = null; return a; } private static final long serialVersionUID = 876323262645176354L; /** * Saves the state of this {@code LinkedList} instance to a stream * (that is, serializes it).
Find elsewhere
🌐
GeeksforGeeks
geeksforgeeks.org › java › implementing-a-linked-list-in-java-using-class
Implementing a Linked List in Java using Class - GeeksforGeeks
July 11, 2025 - // This inner class is made static ... d) { data = d; next = null; } } // Method to insert a new node public static LinkedList insert(LinkedList list, int data) { // Create a new node with given data Node new_node = new Node(data); ...
🌐
Software Testing Help
softwaretestinghelp.com › home › java › linked list in java – linked list implementation & java examples
Linked List In Java – Linked List Implementation & Java Examples
April 1, 2025 - In this LinkedList tutorial, we will deal mostly with the singly linked list. We will discuss the doubly linked list in our next tutorial. In Java, the linked list is implemented by the “LinkedList” class. This class belongs to the “java.util” package.
🌐
Sourcecodeexamples
sourcecodeexamples.net › p › java-linkedlist-examples.html
Java LinkedList Examples
November 17, 2021 - This page contains source code examples of the LinkedList class in Java.
🌐
Oracle
docs.oracle.com › en › java › javase › 17 › docs › api › java.base › java › util › LinkedList.html
LinkedList (Java SE 17 & JDK 17)
April 21, 2026 - public class LinkedList<E> extends AbstractSequentialList<E> implements List<E>, Deque<E>, Cloneable, Serializable
🌐
GeeksforGeeks
geeksforgeeks.org › java › java-program-to-implement-linkedlist-api
Java Program to Implement LinkedList API - GeeksforGeeks
July 23, 2025 - // Java Program to Implement LinkedList ... linkedList; // Constructors of this class // 1. Default constructor public LinkedListImpl() { linkedList = new LinkedList<E>(); } // 2. Parameterized constructor public LinkedListImpl...
🌐
DZone
dzone.com › data engineering › data › an in-depth look at java.util.linkedlist
An In-Depth Look at java.util.LinkedList
April 5, 2017 - I don’t expect you to fully grasp every detail of the code, I just want to show you that LinkedList is a normal Java class which anyone could have written, given enough time and knowledge. The real source code is available online. After reading this article, I recommend that you take a look at it for yourself.
🌐
DataCamp
datacamp.com › doc › java › linkedlist
Java LinkedList
... import java.util.LinkedList; public class LinkedListExample { public static void main(String[] args) { LinkedList<String> list = new LinkedList<>(); // Adding elements list.add("Apple"); list.add("Banana"); list.add("Cherry"); // Accessing elements System.out.println("First element: " + ...
🌐
W3Schools
w3schools.com › java › java_ref_linkedlist.asp
Java LinkedList Reference
Some methods use the type of the LinkedList's items as a parameter or return value. This type will be referred to as T in the table. ... Coding fundamentals as bite-sized lessons and challenges. ... If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail: sales@w3schools.com · If you want to report an error, or if you want to make a suggestion, send us an e-mail: help@w3schools.com · HTML Tutorial CSS Tutorial JavaScript Tutorial How To Tutorial SQL Tutorial Python Tutorial W3.CSS Tutorial Bootstrap Tutorial PHP Tutorial Java Tutorial C++ Tutorial jQuery Tutorial
🌐
Android Developers
developer.android.com › api reference › linkedlist
LinkedList | API reference | Android Developers
Skip to main content · English · Deutsch · Español – América Latina · Français · Indonesia · Polski · Português – Brasil · Tiếng Việt · 中文 – 简体
🌐
Baeldung
baeldung.com › home › java › java list › creating a custom linked list data structure in java
Creating a Custom Linked List Data Structure in Java | Baeldung
April 22, 2025 - In this article, we learned how to create a custom linked list that mirrors Java’s built-in LinkedList. Also, we implemented insertion, retrieval, and removal methods for managing elements in our custom linked list. The code backing this article is available on GitHub.