package test;
public class Test {
class InnerClass {
}
static class NestedClass {
// 有static的内部类
}
public static void main(String[] args) {
Test t = new Test();
Test.InnerClass ic = t.new InnerClass();
Test.NestedClass nc = new Test.NestedClass();
}
}