title: Java instance variable declare and Initialize in two statements
body: <p>Hi I'm having problem with initialization in java, following code give me compile error called :  expected instanceInt = 100; but already I have declared it. If these things relate with stack and heap stuff please explain with simple terms and I'm newbie to java and I have no advanced knowledge on those area </p>
  
  <hr>
  
  <pre><code>public class Init { 
  
  int instanceInt;  
  instanceInt = 100;
  
     public static void main(String[] args) {
  
       int localInt;
       u = 9000;
       }
  
  }  
  </code></pre>