KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Test63


1 public class Test63 {
2
3     public static void main(String JavaDoc [] args){
4         Test63 t63 = new Test63();
5         t63.run();
6     }
7
8     public Test63() {
9         this(5);
10     }
11
12     private Test63(int x){
13         System.out.println("private constructor invoke with: "+x);
14     }
15
16     public void run(){
17         Inner in = new Inner();
18         in.run();
19     }
20
21     public class Inner {
22         public void run(){
23             Test63 innerT63 = new Test63(4);
24         }
25     }
26 }
27
Popular Tags