public class GenericExceptionTest { public static void main(String args[]) { try {
Executor<IOException> e = new Executor<IOException>() { public void execute() throws IOException
{
// code here that may throw an
// IOException or a subtype of
// IOException
}
};