This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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
It's not a secret anymore!