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 full form OOP?
Explain about polymorphism?
What is the best tool for modeling and ORM framework
What does the “abstract” keyword mean in front of a method? A class?
What is the purpose of late binding in object-oriented programming?
What is a ternary operator?
Can a function be overloaded based on return types?
What is an abstraction and why is it important?
Explain the different types of constructors
Explain about inheritance?
What is the difference between an interface and abstract class?
What is single and multiple inheritance?
What is @functionalinterface?
What is method overriding?
What is the diffrence between an abstract class and interface?