This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Import statement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Import statement" Watch "Import statement" New topic

Import statement

Paul Barnes

Joined: Oct 11, 2001
Posts: 4
Does the use of the import statement affect run-time processing at all? For instance, does a class with 50 import statements perform more slowly than a class with 5 import statements, assuming that all other aspects of the classes are the same?
If there is a difference in performance, can you please explain the reason?
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
Here is your answer .
Paul Barnes

Joined: Oct 11, 2001
Posts: 4
I agree. Here's the link:
subject: Import statement
Similar Threads
First valid statement in a java class
efficiency of import statements
Importing classes
HTTP method POST is not supported by this url
Package statement and Import statement