Comment: C++ "includes" behavior and java "imports"



Comment: C++ "includes" behavior and java "imports"..

Answer / mrangababu

#include in C/C++: #include makes a compiler to copy header
file code into a C/C++ program.
Dis Adv:It increase the program size unnecessarly.wastage
of memory and process time.

import in java : import statement makes JVM to go to the
java library execute the code there at finally substitute
the result into java program.JVM physically will not copy
any code.

import is efficient than #include....

Is This Answer Correct ?    16 Yes 4 No

Post New Answer

More OOAD Interview Questions

What does it mean that a method or class is abstract?

0 Answers  


How can we restrict inheritance for a class so that no class can be inherited from it?

0 Answers  


How will you define abstract classes?

0 Answers   QuestPond,


What is operator overloading and polymorphism?

0 Answers   ITC Indian Tobacco Company,


What do you mean by abstract class?

0 Answers   Atos Origin, TCS,


What are the main features of oops?

0 Answers  


Comment: C++ "includes" behavior and java "imports"

1 Answers   Protech,


Can I implement polymorphism using abstract class?

0 Answers   MCN Solutions,


How does abstraction differ from encapsulation.

0 Answers  


What's the order of call of constructors in inheritiance?

0 Answers  


Why does the function arguments are called as "signatures"?

4 Answers  


What is the use of finalize method?

0 Answers  


Categories