Javaクラス、インタフェース定義関連
2926 ワード
今日の少しの収穫
- /**
- *
- * Java ,
- */
- public class Test {
- public static void main(String[] args){
- int x;
- System.out.println(x); //The local variable x may not have been initialized
- }
- }
- /**
- *
*/
- abstract public class TestProtected {}//Right!
- final public class Test4{}//Right!
-
- //protected
- protected class Test{}//Error!
-
- // static
- public static interface Test{}//Error!
- static class Test{} //Error!
- // :