title: How to call a static method in Java?
body: <p>Here i have a class named <code>FirefoxPhDriver</code></p>
  
  <pre><code>public class FirefoxPhDriver extends AbstractWebPhDriver {
  
      public static FirefoxPhDriver newInstance(
              PhDriverIngredients ingredients) {
          FirefoxPhDriver pd = new FirefoxPhDriver();
  
          if (pd.verify(ingredients)) {
              return pd;
          }
  
          return null;
      }
  }
  </code></pre>
  
  <p>As i new to java am not sure how can i call this <code>newInstance</code> method in another class</p>
  
  <p>i tried </p>
  
  <pre><code>FirefoxPhDriver drvr = new FirefoxPhDriver(ingrdients)
  </code></pre>
  
  <p>But am getting the constuctor FirefoxPhDriver is not visible</p>