SubClass variables do not get initialized again
<p>I have my main class from which i call my sub class.</p>

<p>My sub class contains some public static  variables like</p>

<pre><code>    public class SubClass2 extends Main {


     public static  long a = 0;
     public static  long b = 0;
     public static  long c= 0;

    public void Analyze(int number)
    {
      b=2;

    //some code
     }
    }
</code></pre>

<p>Where as in main i call the object of the SubClass2.I want everytime when i make the new object of the subclass2 in main then it initializes 
all the variables =0 but when i take the print statement of the variable b.It prints out like 4.It adds up the previous value with the new value.</p>

<p><img src="http://i.stack.imgur.com/IQX8c.png" alt="enter image description here"></p>
