Just remember that the dot operator could be used to reach a static memeber...like Obj.staticMethod(). So why does this fail:
class HaveStatic {
static
String shiny() { return "1"; }
}
class
Test extends HaveStatic {
public static void main(String [] args) {
String s = shiny() + getShiny();
s = s + super.shiny();
System.out.println(s);
}
static String getShiny() { return shiny(); }
}
[ May 26, 2006: Message edited by: Firas Zureikat ]