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 |
Which OOPS concept is used as a reuse mechanism?
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?
Why abstraction is important?
Explain what is meant by polymorphism?
Which oops concept is used as reuse mechanism?
What are abstract classes?
What are the different principle of OOPS?
Giving reasons explain two external responsibilities of a project manager.
Explain the concept of multiple inheritance (virtual inheritance). Write about its advantages and disadvantages?
what are the main underlying concepts of object orientation?
Can you instantiate an abstract class and what is an inner class?
0 Answers Flextronics, Tavant Technologies, Virtusa,
What is the difference between class and interface?