2007-06-09から1日間の記事一覧
こんな書き方も可能ではある。 class A{ class B{ } } class Main{ public static void main(String[] args) { A.B b = new A().new B(); } }
http://java.sun.com/docs/books/jls/third_edition/html/classes.html#8.1.3 An inner class is a nested class that is not explicitly or implicitly declared static. staticでないのを特にインナークラスと言うのか。同じものと思ってたよ。 追記 分か…
http://suned.sun.co.jp/JPN/certification/javamain.html http://www.sun.com/training/certification/java/index.xml 試験名は Sun Certified Programmer for the Java 2 Platform, Standard Edition 5.0 (CX-310-055) とかJava2のままだ Sun Certified Bu…
http://web.paulownia.jp/java/sample/covariant.html http://blogs.wankuma.com/kacchan6/archive/2007/04/18/71891.aspxJava5からオーバーライドしたメソッドの戻り値の型に、親メソッドのサブタイプ(クラス、インターフェイス)を指定できたらしい(1.4まで…