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

Explain the rationale behind object oriented concepts?

0 Answers  


Explain what is meant by polymorphism?

0 Answers   BPL,


Can an interface inherit from another interface?

0 Answers  


Write basic concepts of oops?

0 Answers  


What are the features that are provided to make a program modular?

0 Answers  


What are the various types of constructors?

0 Answers  


If a method definition has been specified in class , its base class , and the interface which the class is implementing, which definition will be picked if we try to access it using interface reference and class object?

0 Answers  


Which OOPS concept is used as a reuse mechanism?

0 Answers  


Differentiate between overloading and overriding.

0 Answers  


Is it possible to override private virtual methods?

0 Answers   Infosys,


Explain the purpose of composition.

0 Answers  


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

4 Answers  


Categories