I mean why do we have to create an object?
1. class1 obj= new class1();
2. class1 obj;
can't we just create it like the 2nd method?
1. class1 obj= new class1();
2. class1 obj;
can't we just create it like the 2nd method?