ExceptionGame


interface Type1{
void f() throws CloneNotSupportedException;
}
interface Type2{
void f()throws InterruptedException;
}
interface Type3 extends Type1,Type2{

}
public class ExceptionGame implements Type3{

@Override
public void f() {
// TODO Auto-generated method stub
System.out.println("Hello world!");
}
public static void main(String[] args) {
Type3 t=new ExceptionGame();
t.f();
}

}
posted @ 2009-10-31 02:13  macula7  阅读(91)  评论(0编辑  收藏  举报