1

Possible Duplicate:
What is the difference between Class.this and this in Java

I know what this means in Java, but sometimes I see something like SomeClass.this, what does it mean? does it refer to a static class filed? Could you please explain with an example?

Thanks.

Community
  • 1
  • 1
Eng.Fouad
  • 115,165
  • 71
  • 313
  • 417

1 Answers1

3

It is a way code in a method of your inner class can refer to the encompassing outer class instance.

Nathan Hughes
  • 94,330
  • 19
  • 181
  • 276