Hi,
Java uses dynamic loading of class unlike C,C++
import java.swing.*;import java.swing.JComboBox;  does't make any difference
in  bytecode size and speed.
It produces exatly same bytecode in both cases.
Try using javap -c ClassName  to check it.

regards,
Bharavi

----- Original Message -----
From: "siva prasad" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, July 04, 2001 12:41 AM
Subject: Re:Import statement


> Hello Gautam,
>             I have one basic doubt on "import"
> statement.like
>
> is there any difference in any way between these two
> statements
>
> 1)import java.swing.*;
>
> 2)import java.swing.JComboBox;
>
> what i knew about this is :-
>  in the first case when we compiling the class loader
> has to import all the classes in the swing package.
>
> but in the second case it imports only "JComboBox"
> class only.
>
> is it correct? or not?
>
> pls' explain about this doubt..
>
> thanks in advance.
>
> regards
> siva.
>
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/

Reply via email to