title: The Scope of a variable initialized in a constructor
body: <p>If you create a class, say</p>
  
  <pre><code>public class Supplier {
      String s;
  
      public Supplier() {
          s = "MyString";
      }
  }
  </code></pre>
  
  <p>Now if you try to access s within a method in the same class. When you run the code, the variable s, still remains null.</p>
  
  <p>Id like to know how the constructor affects a variable.</p>