What does Java do when we import packages multiple times in the same class?
<p>Try this piece of code. It compiles. </p>

<pre><code>import java.io.*;
import java.io.*;
import java.io.*;

import java.util.*;
import java.util.*;
import java.util.*;

import javax.swing.*;
import javax.swing.*;
import javax.swing.*;


public class ImportMultipleTimes
{
   public static void main(String[] args)
   {
      System.out.println("3 packages imported multiples times in the same class.");
   }
}
</code></pre>

<p>Does the compiler simply ignore the additional import statements?  </p>
