Answer:
d.)either handle the exception or have a throws clause listed in the method header
Explanation:
A checked exception that can be thrown in a method , necessarily needs to be handled in the method in one of the two ways:
For example, let us see both:
a)
public void mymethod(){
// Exception handling using try/catch block
try{
}
catch ( IOException e){
}
}
b)
public void mymethod() throws IOException{
// Exception in the throws clause
}