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 |
Explain the rationale behind object oriented concepts?
Explain what is meant by polymorphism?
Can an interface inherit from another interface?
Write basic concepts of oops?
What are the features that are provided to make a program modular?
What are the various types of constructors?
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?
Which OOPS concept is used as a reuse mechanism?
Differentiate between overloading and overriding.
Is it possible to override private virtual methods?
Explain the purpose of composition.
Why does the function arguments are called as "signatures"?