when using an import statement, does the compiler include every class within a package, or only the classes that are used?
for example, if a program had "import java.io.*" but then only used a File object, would the compiler throw in BufferedReader and all the other classes in to the compiled code? i've heard both sides of the story, but haven't found official documentation on it.
for example, if a program had "import java.io.*" but then only used a File object, would the compiler throw in BufferedReader and all the other classes in to the compiled code? i've heard both sides of the story, but haven't found official documentation on it.