title: What does node class do in LinkedList class
body: <p>I am trying to understand how is Java creating nodes i.e. making linked list.So I was checking the LinkedList.java file and I saw  a inner node class in linked list class so is this inner node class responsible for actually creating the nodes?</p>
  
  <p>Also when we use this class will we say that object created is for LinkedList Class or for Node Class?</p>
  
  <pre><code> public class LinkedList&lt;E&gt;
    extends AbstractSequentialList&lt;E&gt;
    implements List&lt;E&gt;, Deque&lt;E&gt;, Cloneable, java.io.Serializable
    {
  
  private static class Node&lt;E&gt; {
      E item;
      Node&lt;E&gt; next;
      Node&lt;E&gt; prev;
      Node(Node&lt;E&gt; prev, E element, Node&lt;E&gt; next) {
          this.item = element;
          this.next = next;
          this.prev = prev;
      }
  }
  </code></pre>
  
  <p>P.S It is not a duplicate I am trying to understand what is node class doing in the built in LinkedList class which is a double linked list .In the other question they are creating a new singly linked list </p>