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
Explain about object oriented programming?
Define exceptions?
What is the difference between function overloading and over riding?
Explain about multiple inheritance?
Can you create an instance for an abstract class?
What is a subclass?
Can we override static methods of a class?
What is sealed modifiers?
What are the methods required to create changes in subclasses?
Tell me something about abstract classes?
What is the function of dynamic typing?
What do you mean by "explicitly implemeting an interface". Give an example?
Define modularity?
What are different ways to create string object?
How to define an abstract class?