| Author |
non-static variable this cannot be referenced from a static context
|
Timothy Toe
Ranch Hand
Joined: Oct 19, 2002
Posts: 156
|
|
Why ?
|
 |
Keen Chen
Ranch Hand
Joined: Nov 12, 2002
Posts: 47
|
|
hi if u wanna a inner class (not static)object, u do this: new.Outer().new Inner(). must need a Outter class object reference first. right? but , in a static method ,not exist a reference(unless u NEW it). because static method is pertain a class,
|
SCJP 1.4 100% @ Peking, China <br />~~~~~~~~~~~~~~~~~~~~~<br />但使龙城飞将在, 不教胡马度阴山!
|
 |
 |
|
|
subject: non-static variable this cannot be referenced from a static context
|
|
|