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.
for example:
import javax.microedition.lcdui.*;
after i read the rest of its code, i just noticed it use just one or two class.
for example:
import javax.microedition.lcdui.Canvas;
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?