java - this pointer is shown as a variable name in eclipse while debugging -
below screen shot of eclipse while trying debug program. not understand why variables section in top right corner shows "this" variable name , value of test(class name). thought pointer , not variable.
can me this
"this" keyword reference current object. used pass instance of object..
for example, these 2 allocations equal:
class test{ int i; public test(){ } public void abc(int i){ i++; this.i++; } }
and program doesn't make sense me ...
Comments
Post a Comment