title: Behaviour of the static reference variable
body: <p>I have a static reference variable  </p>
  
  <pre><code>static IMail mailer = null;
  </code></pre>
  
  <p>to which I am assigning a value in the constructor of the class SearchManager</p>
  
  <pre><code>public SearchManager(ILog logger, String basePath, String indexPath, String nwId, IMail mailer) {
          this.logger = logger;
          this.basePath = basePath;
          this.indexPath = indexPath;
          this.nwId = nwId;
          this.mailer = mailer;
      } 
  </code></pre>
  
  <p>and I am using the mailer in my code. The constructor of this class might be called multiple times. So I have a query that how this static reference variable will behave each time the constructor is called. Will it take only the value which I passes when I called the constructor the first time or will it take different values each time I call the constructor?     </p>