posted 19 years ago
Hi,
we cannot use this in static method. Because the default behaviour of static method is we can call static method without creating instance of the class. We can access static memebers without creating instance of the class. this keyword refers current object instance. It will affects the behaviour of static methods. So this can't be used in static methods.
Raghu J<br />SCJP 1.4<br /> <br />The Wind and waters are always<br />on the side of the ablest navigators.<br /><a href="http://groups.yahoo.com/group/scjp_share" target="_blank" rel="nofollow">SCJP Group</a><br /><a href="http://groups.yahoo.com/group/JavaBeat_SCWCD" target="_blank" rel="nofollow">SCWCD Group</a>