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"

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about object oriented programming?

964


Define exceptions?

875


What is the difference between function overloading and over riding?

977


Explain about multiple inheritance?

1002


Can you create an instance for an abstract class?

895


What is a subclass?

967


Can we override static methods of a class?

978


What is sealed modifiers?

962


What are the methods required to create changes in subclasses?

945


Tell me something about abstract classes?

893


What is the function of dynamic typing?

1038


What do you mean by "explicitly implemeting an interface". Give an example?

948


Define modularity?

1011


What are different ways to create string object?

1042


How to define an abstract class?

961