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 |
What is inheritance?
What are the types of polymorphism?
What is a nested interface?
What is the difference between class and interface?
What do you meant by static and dynamic modeling?
Is class an Object? Is object a class?
3 Answers InfoAxon Technologies, Protech,
Is is possible to define our own functional interface?
Can a class implement two interfaces having default method with same name and signature?
what is the difference between the up phase and up workflows?
What is the default access modifier in a class?
Giving reasons explain two external responsibilities of a project manager.
A class inherits from 2 interfaces and both the interfaces have the same method name as shown below. How should the class implement the drive method for both car and bus interface?