I've a question about catching an exception in method that use another method that can throw an exception.

```
public void methodA(File file) {
  try {
  }
  catch (IOException ex) {
  }
}

public void methodB() {
 // do something with the file
 File file = new File("/example.txt");
 methodA(file);
}

```

Do I need to create a try and catch block inside the methodB? Or it's enough to catch the exception in that case IOException inside methodA?