import java.util.concurrent.Callable;
import java.io.IOException;
public class HelloWorld{
public static void main(String []args){
Callable<Void> callable = new Callable<Void>()
{
public Void call() throws IOException
{
return null;
}
};
try
{
callable.call();
}
catch(IOException e)
{}
}
}
Here I get error "unreported exception Exception". I don't want to use generic exception Exception. What to do?