Code:
class abc1 { public void abc2(abc my) { this=my; } } class abc3 { public static void main(String args[]) { abc1 a= new abc1(); abc1 b=new abc1(); b.abc2(b); } }
Q2) Why we cannot have static members inside static functions in Java. Whats the problem and whats the benefit?
Thank You in advance for taking your time n resolving my query.
Comment