import java.io.IOException;

class Ideone {
	private static <T extends Throwable> void rethrow(Throwable t) throws T {
		throw (T) t;
	}
	
	private static void withoutExceptionsDeclaration() {
		try {
			throw new IOException();
		} catch (Throwable t) {
			rethrow(t);
		}
	}
	
	private static void test() throws IOException {
		throw new IOException();
	}
	
	public static void main (String[] args)  {
		withoutExceptionsDeclaration();
	}
}