title: Java : object of a class as instance variable in same class
body: <p>Being a beginner, I have a conceptual doubt. What is the use of a class type object as member/instance variable in the same class?
  Something like this :</p>
  
  <pre><code>class MyClass {
  
  static MyClass ref;
  String[] arguments;
  
  public static void main(String[] args) {
      ref = new MyClass();
      ref.func(args);
  }
  
  public void func(String[] args) {
      ref.arguments = args;
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Thanks in advance!</p>