java.lang パッケージにはどういうクラスがあるのか 左辺がObjectで右辺は何でも入れられる (Object型の変数には、どんな「オブジェクト」でも代入できる) → 全部 Object を継承しているから。 Object o1 = "hello"; Object o2 = 123; // Integerに変換されて入る Object o3 = new ...
If you are fortunate enough to be using JDK 7, the newly available Objects class is the obvious (at least to me) choice for implementing the “common” Java object ...