This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java  RSS feed

 
Pavan Kumar C V
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When the classes that we have imported in our java application are actually loaded.I have found out that my java applications size and after compilation the .class are both same.Can anybody give me the solution for this?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pavan Kumar C V
Welcome to JavaRanch!

We're pleased to have you here with us in the servlets forum, but there
are a few rules that need to be followed, and one is that proper names are
required. Please take a look at the
JavaRanch Naming Policy and
adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

You can change it here
[ September 14, 2006: Message edited by: Ben Souther ]
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16028
87
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The "import" statement in Java is only a directive to tell the compiler in which package to look for classes that you're using. It does not add the code of the class you are importing to your own class file, like #include does in C/C++.

The classes that are used by your own class are loaded at runtime.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!