Consider the following code snippet and choose the best option:
public static void main(String []files) { try (FileReader inputFile = new FileReader(new File(files[0]))) { // #1 } catch (FileNotFoundException | IOException e) { // #2 e.printStackTrace(); } }
c)
Both of the specified exceptions belong to same hierarchy (FileNotFoundException derives from an IOException), so you cannot specify both exceptions together in the multi-catch handler block.