I am new in Java programming. I'm preparing an assignment and I need some help with my code.The instructions say I need to handle exceptions in my numberOfRows() and convertFileArray() methods. The exercise consists of reading from a csv file, convert the file to a multidimensional array, print the array on screen. My program works fine, the only issue I have is that I can't figure out which exceptions I can handle in those 2 methods.I wrote the general exception just because I don't know what to do. Any suggestions will be really helpful. Also I am only posting the class where I need to put my try-catch blocks.Thanks in advance.Here is my code:\[code\]import java.io.*;import java.nio.file.*;import java.util.StringTokenizer;public class ReadFiles { int rows = 0; int columns = 0; String s = null; private String[][] arrayValues; Path filePath; public ReadFiles(String name) { filePath = Paths.get("C:\\stocks\\" + name); //newMSFT.csv System.out.println("Path for file entered " + filePath.toString()); } public boolean fileExists() { if(Files.exists(filePath)) return true; else return false; } public int numberOfRows() { try { InputStream data = http://stackoverflow.com/questions/15651842/new BufferedInputStream( Files.newInputStream(filePath)); BufferedReader reader = new BufferedReader( new InputStreamReader(data)); s = reader.readLine(); while(s != null) { rows++; s = reader.readLine(); } } catch(Exception e) { System.out.println("Message: " + e); } return rows; } public void convertFileArray() { try { InputStream data = http://stackoverflow.com/questions/15651842/new BufferedInputStream( Files.newInputStream(filePath)); BufferedReader reader = new BufferedReader( new InputStreamReader(data)); s = reader.readLine(); StringTokenizer z = new StringTokenizer(s,","); columns = z.countTokens(); arrayValues = new String[rows][columns]; for(int x = 0; x < rows; x++) { z = new StringTokenizer(s, ","); //when there are still more tokens, place it in the array: int y = 0; while(z.hasMoreTokens()) { arrayValues[x][y] = z.nextToken(); y++; } s = reader.readLine(); } System.out.println("An array was created and has " + rows + " rows and " + columns + " columns."); } catch(Exception e) { System.out.println("Message: " + e); e.printStackTrace(); } } public void printArray() { System.out.println("The data from the array is >> "); for(int a = 0; a < rows; a++) { String output = null; for(int b = 0; b < columns; b++) { System.out.print(arrayValues[a] + " "); } System.out.println(); } } public String[][] getArrayValues() { return arrayValues; } }\[/code\]