Order of throws exceptions in Java
<p>I am writing code for reading files into Java.</p>

<p>I have a main method that throws three Exceptions.
I am wondering what would the impact would be if I switched the order of writing the exceptions in the same line of <code>public static void main(String[] args)</code>.</p>

<pre><code>public class SwitchTester {

    private static Scanner pathInput;

    public static void main(String[] args) throws IOException, NoSuchElementException, IllegalStateException{
</code></pre>

<p>I use the code inside the main method.
The order of exceptions I use is IOException, NoSuchElementException, IllegalStateException in this code. 
Would it matter to keep the same order in the main line?
Would it matter to keep throws in the main line or not at all?</p>

<pre><code>    try{         
        pathInput = new Scanner(path);
    }catch(IOException ioException){
        System.err.println("Error opening file. Terminating.");
        System.exit(1);
    }

    System.out.printf("%-10s%-15s%-15s%10s%n", "Port", "Destination",
             "Source", "Data-type");

    //readRecords
    try{
        while(pathInput.hasNext()){ //while there is more to read, display record contents
            System.out.printf("%-10s%-15s%-15s%10s%n", pathInput.next(), 
                    pathInput.next(), pathInput.next(), pathInput.next());
        }
     }catch(NoSuchElementException elementException){
         System.err.println("File improperly formed. Terminating.");
     }catch(IllegalStateException stateException){
         System.err.println("Error reading from file. Terminating.");
     }
</code></pre>

<p>I would appreciate your answer!
Thanks!</p>