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

screenshot

"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

Popular posts from this blog

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -