title: Can i initialize static variable after the initialization?
body: <p>What is the problem with below code?</p>
  
  <pre><code>class test {
      static int a;
      a=10;
  }
  </code></pre>
  
  <p>If I'm writing like this (as above), I'm getting a compile time error.</p>
  
  <pre><code>class test { 
      static int a=10;
      a=4;
  }
  </code></pre>
  
  <p>For the second one, I'm not getting any error. </p>