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();
}
}