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 |
What is a friend function?
Which oops concept is used as reuse mechanism?
What is Abstract method and how different from Virtual Method?
Explain what a method is?
What are the methods required to create changes in subclasses?
Can we have default method with same name and signature in the derived interface as the static method in base interface and vice versa?
why do requirements change so much? after all, don't people know what they want?
How to use CRC Cards for Class Design?
Difference: Sequence Diagrams, Collaboration Diagrams ?
Can we use static method definitions in interfaces?
Explain the meaning of object in object oriented programming?
Is class an Object? Is object a class?