title: The serializable class GuiLote does not declare a static final serialVersionUID field of type long
body: <p>I want to serialize a Java class because a warning: <code>The serializable class GuiLote does not declare a static final serialVersionUID field of type long</code>.
  Eclipse recommends this two options:
  <strong>Add default serial version ID</strong> and <strong>Add generated serial version ID</strong>. What the difference between them?
  Eclipse add this for <strong>default</strong> serial version ID:</p>
  
  <pre><code>/**
   * 
   */
  private static final long serialVersionUID = 1L;
  </code></pre>
  
  <p>Or add this for <strong>generated</strong> serial version ID:</p>
  
  <pre><code>/**
   * 
   */
  private static final long serialVersionUID = 8534363180966005148L;
  </code></pre>
  
  <p>This is my code:</p>
  
  <blockquote>
    <p><code>public class GuiLote extends JInternalFrame implements ActionListener
    { ... }</code></p>
  </blockquote>