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 Class Diagram in Detail.
2 Answers InfoAxon Technologies, Protech,
What is virtual?
Why should project managers complete hard problems first in an OOSAD project?
What is Overloading ? Is it similar to overriding ?
Explain about overriding polymorphism?
Why is class hierarchies managed in object-oriented programming?
What are the methods required to create changes in subclasses?
What is the main difference between overloading and overriding?
Is class an Object? Is object a class?
Can we use static method definitions in interfaces?
What is Polymorphism, overloading, overriding and virtual?
Write a note on encapsulation?