Regarding the import in java...
Author |
Message |
TokenHerbz
|
Posted: Thu Jan 26, 2012 9:50 pm Post subject: Regarding the import in java... |
|
|
I always see specific extensions when using the import, however i read that just using java.* for example, works just the same, and it does NOT actually load up the entire library, which i was under the impression it did before.
so if this is true, and it has no actual impact on resources with the program, is this used because it enhances the speed?
I'm a little confused to why the full extension is actually better... |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Tony
|
Posted: Thu Jan 26, 2012 9:58 pm Post subject: RE:Regarding the import in java... |
|
|
namespace
There could be multiple classes, each with the simple name Bar. If you are importing everything, then you'd have to specify full Foo.Bar or Fizz.Bar every time. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
Zren
|
Posted: Fri Jan 27, 2012 12:23 am Post subject: RE:Regarding the import in java... |
|
|
Like List. java.awt.List versus java.util.List |
|
|
|
|
|
|
|