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 |
Can a function be overloaded based on return types?
What is the difference between oop and sop?
Why is java not fully objective oriented?
what is virtual function and pure virtual function ?
What is polymorphism? When is it employed? give an example.
Explain about the design phase?
Why should project managers complete hard problems first in an OOSAD project?
Can you call the base class method without creating an instance?
What is the use of finalize method?
Difference: Object Oriented Analysis (OOA) and Object Oriented Design (OOD)?
Explain the concept of multiple inheritance (virtual inheritance). Write about its advantages and disadvantages?
Explain serialization and overriding?