IntelliJ Java IDE
The moose likes Performance and the fly likes Import Statement...? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Performance
Reply Bookmark "Import Statement...?" Watch "Import Statement...?" New topic
Author

Import Statement...?

Prashant Neginahal
Ranch Hand

Joined: Dec 04, 2002
Posts: 76
Hi All,
import packagename.*; It is a compile time activity or runtime activity.?
Is it going to affect performance as it seems to be bring all classes...?
Pls anyone explain me.
----------------
Prashant


--------------<br />Prashant<br />SCJP-91%
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Compile time only, it has no effect on runtime behaviour.
There may be the small difference in the time it takes to compile if all import statements have stars, but I'm not sure about the exact behaviour.
Dave


[ JavaRanch FAQ ][ Book Promotions ][ DbTamer ][ BumperStickers ][ JavaRanch Badges ]
 
IntelliJ Java IDE
 
subject: Import Statement...?
 
Threads others viewed
How to create a toast via button click
Screen changing
force closes
Why error in this code
get screen of another application
developer file tools