2005-05-18から1日間の記事一覧
JLS2 8.1.2 より。 class InnerStaticInheritence { static int i; } class InnerStaticInheritenceOuter { class Inner extends InnerStaticInheritence { // コンパイルエラー static int i; } int test() { return Inner.i; } }内部クラスがなんで static…
JLS2 8.1.1.1 より。当たり前といえば当たり前だが。 interface CannotImplementIntf1 { void test(); } interface CannotImplementIntf2 { int test(); } abstract class CannotImplement implements CannotImplementIntf1 { // コンパイルエラー public ab…