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

What is super keyword?

0 Answers  


Explain persistence?

0 Answers  


Can you create an instance of an interface?

0 Answers  


Why is planning too much up front a mistake in an OOSAD project?

3 Answers   Infosys,


What is dynamic or run time polymorphism?

0 Answers  


Differentiate between a class and a method.

0 Answers  


What is the @functionalinterface annotation?

0 Answers  


Can we reduce the visibility of the inherited or overridden method ?

0 Answers  


How to achieve data abstraction?

0 Answers  


What is polymorphism and abstraction?

0 Answers   Agilent, Integreon, ZS Associates,


Every object has : state, behavior and identity - explain

2 Answers   InfoAxon Technologies, Protech,


What is difference between class and interface?

0 Answers  


Categories