title: Static Final Long serialVersionUID = 1L
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/285793/what-is-a-serialversionuid-and-why-should-i-use-it">What is a serialVersionUID and why should I use it?</a><br>
    <a href="https://stackoverflow.com/questions/5335768/what-is-meant-by-that-in-a-servlet-private-static-final-long-serialversionuid">what is meant by that in a servlet (private static final long serialVersionUID = 1L)?</a>  </p>
  </blockquote>
  
  
  
  <p>I have 1 simple question about this guided program given by our professor. 
  I have seen serialVersionUID several times but I dont what's that for.</p>
  
  <pre><code>package module;
  import java.io.IOException;
  import java.io.PrintWriter;
  import java.util.Scanner;
  
  import javax.servlet.ServletException;
  import javax.servlet.ServletOutputStream;
  import javax.servlet.ServletResponse;
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;
  
  /**
   * @author JA
   */
  public class Servlet_1 extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet{
  
      static final long serialVersionUID = 1L;
  
      public void doGet (HttpServletRequest request, HttpServletResponse response)
          throws ServletException, IOException {
  
          response.setContentType("txt/html");
  
          ServletOutputStream out = response.getOutputStream();
  
          out.println("&lt;html&gt;");
          out.println("&lt;head&gt;&lt;title&gt;Hello Panget&lt;/title&gt;&lt;/head&gt;");
          out.println("&lt;body&gt;");
          out.println("&lt;h1&gt;Hello Panget&lt;/h1&gt;");
          out.println("&lt;/body&gt;&lt;/html&gt;");
      }
  
      protected void doPost (HttpServletRequest request, HttpServletResponse response)
          throws ServletException, IOException {
              // Write your program here, Panget.
      }
  }
  </code></pre>
  
  <p>What is the use of <code>static final long serialVersionUID = 1L;</code> in the program?</p>