Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Regarding the import in java...
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
TokenHerbz




PostPosted: 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
Sponsor
sponsor
Tony




PostPosted: 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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Zren




PostPosted: Fri Jan 27, 2012 12:23 am   Post subject: RE:Regarding the import in java...

Like List. java.awt.List versus java.util.List
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: