File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Package import statement
Joined: Feb 18, 2012
Feb 18, 2012 00:54:31
Could someone throw some light on what happens when you write additional import statements besides those that are being used in a
Does it slows down stuff or something ?
Stephan van Hulst
Joined: Sep 20, 2010
Feb 18, 2012 03:10:26
No. Import statements are just an indication for the compiler where to look for classes necessary during compilation. After all classes have been found and the program has been compiled, the imports are just discarded.
Welcome to CodeRanch!
Joined: Jan 03, 2004
Feb 18, 2012 09:22:17
In other words, imports have precisely zero effect on the generated bytecode, and therefore have zero effect at runtime.
I agree. Here's the link:
subject: Package import statement
How to use spring.jar file?
How to deploy spring.jar file?
A really silly problem .But cant figure out how ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015