can we use this reference inside a static method or a class? can we use static and native together? can anyone explain this?
Joined: Jul 20, 2006
We cannot use 'this' refernce inside the static methods. Reason for it is that 'this' belongs to an instance whereas static stuff does not belong to any particular instance, but to the class in general.
I want to be myself, but a better myself.<br />~ SCJP 1.4 (91%), SCWCD 1.4 (86%) ~
Joined: Feb 07, 2005
this is non static and cannot be refered from static context. A method can be both native and staic.