bhavneet kaur wrote:
static int s;
public static void main(String a)
C1 obj=new C1();
void m2(int x)
//its output is :
why the value of x doesnt changed??
Joined: Aug 06, 2012
x is a method local variable of m1.it doesn't belongs to m2 method.m2 has its own another x.