I can only talk about Java import. It tells the compiler where to find a class file. It's a shorthand so you don't have to type the full package path to every class name you reference.
For example these two snippets do the same thing:
Either way, the compiler puts the full package path to the List and ArrayList in the compiled class file for your code. That's what's needed at runtime.
You can also use the "dot star" import approach. This is considered sloppy and doesn't always work. For example if you import package.path.* on two packages and they happen to have the same classname in both, the compiler can't tell which one you want. The complete import is good documentation, too. I often use the dot star for quick coding and then ask Eclipse to fix it for me.
I used a vendor package that used the full classname on every reference. It was unreadable. The package and class names were so long that the simplest assignment statement was too long to read without scrolling. Use import. Don't use star.
[ January 21, 2007: Message edited by: Stan James ]