Can i use This operator on a static variable?
Posted: Mon Jun 03, 2013 11:51 am
Can i use This operator on a static variable?
In this Code:
Can i use i=this.i2; in insert statements here?
Since i2 is a static member and we cannot use this on static...
Please advise!
Thanks,
Deepa
In this Code:
Code: Select all
public class Test{
int i1;
static int i2;
public void method1(){
int i;
// ... insert statements here
}
}
Since i2 is a static member and we cannot use this on static...
Please advise!
Thanks,
Deepa