Comment: C++ "includes" behavior and java "imports"
Answer Posted / 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 View All Answers
What is the main difference between overloading and overriding?
Do we require parameter for constructors?
Why use oops?
Define Initialisation Purpose.
Explain about a class in oop?
What do you mean by polymorphism?
What is an abstract property. Give an example?
What is the super keyword?
Can I implement polymorphism using abstract class?
How to define an abstract class?
What are the different types of inheritance?
What is the default access modifier in a class?
Describe the Diamond problem. Where does this problem occur?
What are abstract functions? Why are they used?
Explain about multiple inheritance?