title: When boolean add(E element) method of linked list in java return false
body: <p>When boolean add(E element) method of linked list in java return false?</p>
  
  <p>I have investigated LinkedList Implementation and found boolean add(E element) is equivalent to void addLast(E element) method </p>
  
  <p>only difference is </p>
  
  <p>addLast(E element) method implementation:</p>
  
  <pre><code>void addLast(E e) {
          Node&lt;E&gt; l = last;
          Node&lt;E&gt; newNode = new Node&lt;&gt;(l, e, null);
          last = newNode;
          if (l == null)
              first = newNode;
          else
              l.next = newNode;
          size++;
      }
  </code></pre>
  
  <p>And add(E element) method implementation:</p>
  
  <pre><code>boolean add(E e) {
          addLast(e);
          return true;
      }
  </code></pre>