KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Inter2


1 public class Inter2 {
2
3     public static void main(String JavaDoc [] args){
4         Inter2 i2 = new Inter2();
5         i2.run();
6         i2.go();
7     }
8
9     public void run(){
10         Object JavaDoc o = new I3.C();
11         Class JavaDoc c = o.getClass();
12         System.out.println(c.getModifiers());
13
14         o = new C2.C3();
15         c = o.getClass();
16         System.out.println(c.getModifiers());
17     }
18
19     public void go(){
20         
21         Object JavaDoc o = new C2.C3();
22         Class JavaDoc c = o.getClass();
23         System.out.println(c.getModifiers());
24     }
25 }
26
27 interface I3 {
28
29     class C{}
30 }
31
32 class C2 {
33
34     static class C3{}
35 }
36
Popular Tags