File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes How does 'import' work in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How does Watch "How does New topic

How does 'import' work in java

madhup narain
Ranch Hand

Joined: Dec 14, 2004
Posts: 148
just as a matter of curiosity i want to ask how the 'import' statement works in java

what happens in the .class file when there is a statement like 'import java.awt.*' in the source file.


Money for nothing and Java for Free
Georgy Bolyuba
Ranch Hand

Joined: Feb 18, 2005
Posts: 162
You can read it here.

Import does not influence on .class file.
[ September 06, 2005: Message edited by: George Bolyuba ]

SCJP 1.4 (100%) Done.<br />SCJD (URLyBird 1.2.3 Started)
I agree. Here's the link:
subject: How does 'import' work in java
jQuery in Action, 3rd edition