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 :
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;
}
}
Thanks in advance!