The difference of single vs on demand imports is also helps with
variable scoping.

http://java.sun.com/docs/books/jls/second_edition/html/packages.doc.html
Section 7.5

On Nov 14, 11:22 pm, 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