KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > AssertInInterface


1 public class AssertInInterface implements AssertInter{
2
3     public static void main(String JavaDoc [] args){
4         AssertInInterface aii = new AssertInInterface();
5         Object JavaDoc obj = aii.o;
6     }
7 }
8
9 interface AssertInter {
10
11     Object JavaDoc o = new Object JavaDoc(){
12         public void run(){
13             int i = 0;
14             assert i > -1;
15         }
16     };
17 }
18
Popular Tags