import java.util.*

compared with:

import java.util.Vector
cause any added overhead?

Imports of the type java.util.Vector; are referred to as single type import

Imports of the form java.util.*; are referred to as import on demand

Both import on demand and single type import are passive mechanisms. As
passive mechanisms, import loads information about the package and types
only when it is needed. Indeed, the compiler will load this information only
when a type is actually used, not when it is simply imported. The import
simply tells the compiler where to look when it actually needs a type.

So no, importing an entire package produces no more overhead than importing
a specific type

Thanks and Regards
panyam



_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to