今日 Java のインナークラスとリフレクション関連でいくつか発見したことがあったので、ここに残しておきます。 以下のようなコードがあります。 import java.lang.reflect.Constructor; import java.lang.reflect.Method; public class Foo { private class Bar { private Bar() { } private void baz() { System.out.println("zap! zap! zap!"); } } private void foo() throws Exception { new Bar().baz(); // (5) Class clazz = Class.forName("Foo$Bar"); // (1) Constructor constructor = cl