title: Serialization serialversionuid in java
body: <p>I just want to know why we take only long type serialVersionUID variable in java</p>
  
  <pre><code>`public static final long serialVersionUID = 1L;`
  </code></pre>
  
  <p>I mean i know how it works + what is serialization etc.</p>
  
  <p>But i am just curious to know that why we only take long primitive type ? why not int or any other type?</p>
  
  <p>like this </p>
  
  <pre><code> public static final int serialVersionUID = 1;
  </code></pre>
  
  <p>Is java specification tell us to do that?</p>