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 a friend function?

0 Answers  


Which oops concept is used as reuse mechanism?

0 Answers  


What is Abstract method and how different from Virtual Method?

0 Answers  


Explain what a method is?

0 Answers  


What are the methods required to create changes in subclasses?

0 Answers  


Can we have default method with same name and signature in the derived interface as the static method in base interface and vice versa?

0 Answers  


why do requirements change so much? after all, don't people know what they want?

0 Answers   Satyam,


How to use CRC Cards for Class Design?

2 Answers   Protech,


Difference: Sequence Diagrams, Collaboration Diagrams ?

2 Answers   Protech,


Can we use static method definitions in interfaces?

0 Answers  


Explain the meaning of object in object oriented programming?

0 Answers  


Is class an Object? Is object a class?

11 Answers  


Categories