title: Initializing variable with declaration
body: <p>I am a C# developer and I am highly habituated to initialize a variable in the same declaration statement as </p>
  
  <pre><code>ClassA myClass = new ClassA();
  </code></pre>
  
  <p>To my point of view, this practice is concise, more readable and looks neat.</p>
  
  <p>Now, I am learning java for android. So far whatever java snippet I am facing, everywhere I see that the snippet writer is using code like this:</p>
  
  <pre><code>ClassA myClass;
  myClass = new ClassA();
  </code></pre>
  
  <p>Now, I understand that, my question may sound silly, but really curious to know, is there any impact / effect or is there any difference between these 2 approach ? I mean, if I compile a code in java like this :</p>
  
  <pre><code>ClassA myClass = new ClassA();
  </code></pre>
  
  <p>is there anything about it that matters internally ? I just want to be sure that I am not doing anything wrong.</p>