KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > T887rad1


1
2 class T887rad1 {
3     private T887rad1() {
4         System.out.print("super ");
5     }
6     static class Static extends T887rad1 {}
7     class Inner extends T887rad1 {}
8     void foo() {
9         class InnerLocal extends T887rad1 {}
10         new InnerLocal();
11         new T887rad1() {};
12     }
13     static void bar() {
14         class StaticLocal extends T887rad1 {}
15         new StaticLocal();
16         new T887rad1() {};
17     }
18     public static void main(String JavaDoc[] args) {
19         T887rad1 t = new Static();
20         t.new Inner();
21         t.foo();
22         bar();
23         System.out.print("main");
24     }
25 }
26     
Popular Tags