It did not become clear :) Let's say, where 20 classes in a package
called package1. And I gonna use 19 of them. Ok, let's say I will use
15 of them in my *.java. So, is it better name all of them one by one
(import package1.class1; import package1.class2... import
package1.class15;) or I can write just one line of code "import
package1.*;" ?
One line vs 15 lines.

Why not to import all the package? Is it related with some kind of
memory management or efficiency?

k.b.

On Nov 15, 9:22 am, miga <[EMAIL PROTECTED]> wrote:
> On Nov 15, 3:36 am, "Norman Ho" <[EMAIL PROTECTED]> wrote:> What is the 
> advantage of specifying multiple import
>
> > lines to import different classes in a particular package verse a single
> > line of importing the whole package like import java.util.*;
>
> Just a question of not importing tons of code when you need only a few
> blocks of it.
>
>
>
> > Thanks
>
> > norman
>
>

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to