/* 参照型の配列を生成するだけではオブジェクトは生成されない */ class Foo { public static void main (String[] args) { String[] s = new String[3]; // (a) s[0] = new String("Hello"); // (b) System.out.println(s[0]); } }