Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Can a function be overloaded based on return types?

0 Answers   iNautix,


What is the difference between oop and sop?

0 Answers  


Why is java not fully objective oriented?

0 Answers  


what is virtual function and pure virtual function ?

0 Answers   Infosys,


What is polymorphism? When is it employed? give an example.

0 Answers   iNautix,


Explain about the design phase?

0 Answers  


Why should project managers complete hard problems first in an OOSAD project?

3 Answers  


Can you call the base class method without creating an instance?

0 Answers  


What is the use of finalize method?

0 Answers  


Difference: Object Oriented Analysis (OOA) and Object Oriented Design (OOD)?

2 Answers   CSC, HCL,


Explain the concept of multiple inheritance (virtual inheritance). Write about its advantages and disadvantages?

0 Answers  


Explain serialization and overriding?

0 Answers   Motorola,


Categories