@@ -0,0 +1,489 @@
+package reflection;%0A%0Apublic class DeclaringClassTest %7B%0A    %0A    static class A %7B%0A        static class B %7B%0A            class C %7B%0A                %0A            %7D%0A        %7D%0A    %7D%0A    %0A    public static void main(String%5B%5D args) %7B%0A        System.out.println(DeclaringClassTest.class.getDeclaringClass());%0A        System.out.println(A.class.getDeclaringClass());%0A        System.out.println(A.B.class.getDeclaringClass());%0A        System.out.println(A.B.C.class.getDeclaringClass());%0A    %7D%0A    %0A%7D%0A

add DeclaringClassTest.java