Comment: C++ "includes" behavior and java "imports"



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

Post New Answer

More OOAD Interview Questions

Why use oops?

0 Answers  


When will you use an interface and abstract class?

0 Answers  


What is operator overloading?

1 Answers  


What is an abstraction?

0 Answers  


What is method overriding?

0 Answers  


If a method definition has been specified in class , its base class , and the interface which the class is implementing, which definition will be picked if we try to access it using interface reference and class object?

0 Answers  


What is a subclass?

0 Answers  


What is the base type from which all structs inherit directly?

0 Answers  


What is a Persistent, Transient Object?

2 Answers   Protech,


What do you meant by "SBI" of an object?

2 Answers   TCS,


What are the limitations of oops?

0 Answers  


what is full form OOP?

0 Answers   Wipro,


Categories