Difference between #include and Import



Q) what is difference between # include and import ?

A) #include makes the C/C++ compiler to physically copy the entire header file code into the ‘Cor C++’ programs, Thus the program size will increase unnecessarily and hence it takes more memory and memory processor time.

Where as import statment makes the JVM to go to Java Library, execute the code there and substitute the result into the Java program “Here no code is copied”.

Share with SociBook.com

Random Posts

  1. 2 Comment(s)

  2. By srikanth on Feb 18, 2009 | Reply

    dis is really good but make it little bit simple and easy00

  3. By Verlene Tanna on Jun 2, 2011 | Reply

    Hello just wanted to give you a brief heads up and let you know a few of the pictures aren’t loading properly. I’m not sure why but I think its a linking issue. I’ve tried it in two different internet browsers and both show the same results.

Post a Comment