Sometimes i wonder with the convention of writing the import statement in java for effectiveness and best result.
when i read the tutorial in java programming, I often see the writer use all the class inside the package which he/she use in his/her code.
after i read the rest of its code, i just noticed it use just one or two class.
but why the writer import all unnecessary class.
the question is. what is the impact of importing all the class that we don't need to use.
is it make the code eat much memory when it runs? or it file size if bigger rather than importing necessary class?
It will make almost certainly no difference to the performance, because importing is purely a compile-time operation to remove the need to fully-qualify class names. Having said that, some people do argue that it's better to use explicit imports because it makes the dependencies you're introducing clearer.
I'd use the .* format if it wasn't for the fact that modern IDEs make it easy to handle specific imports - you don't need to type them all out yourself.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com