title: Does passing param to constructor better than to static method
body: <p>Assume that I have a class Example:</p>
  
  <pre><code>public class Example(){
      public static String method1(String param){...}
      public static String method2(String param){...}
  }
  </code></pre>
  
  <p>If my client want to call both of those 2 methods: they would do something like this:</p>
  
  <pre><code>String param = "Hello";
  String result = Example.method1(param);
  ...
  String result2 = Example.method2(param);
  </code></pre>
  
  <p>And now It turns me a question, should this code better if we pass param in Example class's contructor and call those 2 methods without any param, something like this:</p>
  
  <pre><code> public class Example(){
       String param;
       public Example(String param){
           this.param = param
       }
       public String method1(){...}
       public tring method2(){...}
   }
  </code></pre>
  
  <p>And the client just calls:</p>
  
  <pre><code>Example example = new Example("Hello");
  String result = example.method1();
  String result2 = example.method2();
  </code></pre>
  
  <p>I'm wondering if the 2nd is better than 1st one. Because in my opion the 2nd one is more <em>OOP</em> and easier to use when we don't need to pass multiple input param?
  Could anyone give me an advice?</p>